Skip site navigation (1) Skip section navigation (2)

Re: Replicating sequences

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Replicating sequences
Date: 2004-10-31 15:25:36
Message-ID: 27749.1099236336@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
"Ed L." <pgsql(at)bluepolka(dot)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

In response to

Responses

pgsql-general by date

Next:From: Tom LaneDate: 2004-10-31 15:29:15
Subject: Re: View's rule on delete problem
Previous:From: Tom LaneDate: 2004-10-31 15:21:52
Subject: Re: procedural languages in 7.4.6

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group