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: (view raw, whole thread or download thread mbox)
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


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-2017 The PostgreSQL Global Development Group