Re: getting back autonumber just inserted - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: getting back autonumber just inserted
Date
Msg-id 20050714130517.GA11501@wolff.to
Whole thread Raw
In response to Re: getting back autonumber just inserted  (Larry Meadors <larry.meadors@gmail.com>)
List pgsql-sql
On Thu, Jul 07, 2005 at 14:47:23 -0600, Larry Meadors <larry.meadors@gmail.com> wrote:
> If you have a trigger on your table that inserts a record in a table
> and shares the same sequence, what value do you get back, the
> triggered curval, or the currently inserted one?

Whichever one was done second. I think it has to be the trigger, because
I think the inserted values will be evaluated first (even before aa
before trigger) since the triggers need to have access to them.


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Possible to use a table to tell what table to select from?
Next
From: sunny076@yahoo.com
Date:
Subject: How to obtain the list of data table name only