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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-general by date

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