Re: Replicating sequences - Mailing list pgsql-general

From Tom Lane
Subject Re: Replicating sequences
Date
Msg-id 27749.1099236336@sss.pgh.pa.us
Whole thread Raw
In response to Replicating sequences  ("Ed L." <pgsql@bluepolka.net>)
Responses Re: Replicating sequences  ("Ed L." <pgsql@bluepolka.net>)
List pgsql-general
"Ed L." <pgsql@bluepolka.net> writes:
> Are triggers on sequences a reasonable feature request/hope for Pgsql?

I don't think so.  Since sequences are inherently not transactional,
it seems wrong to fire a transactional behavior as a side effect of
nextval().  What exactly are you expecting the trigger to do, and
how is it going to do it in a way that won't get rolled back if the
calling transaction fails later?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: procedural languages in 7.4.6
Next
From: Tom Lane
Date:
Subject: Re: View's rule on delete problem