Re: SEQUENCE primary key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris <dmagick(at)gmail(dot)com>
Cc: John McCawley <nospam(at)hardgeus(dot)com>, gustavo halperin <ggh(dot)develop(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: SEQUENCE primary key
Date: 2007-02-14 02:20:48
Message-ID: 5868.1171419648@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris <dmagick(at)gmail(dot)com> writes:
> Actually it's better to use currval.

Right. Also, in 8.2 and up there's INSERT RETURNING, which is far
more flexible --- for instance it could pull back an insertion
timestamp.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adam Rich 2007-02-14 02:43:13 Re: suggestions on improving a query
Previous Message Chris 2007-02-14 02:06:46 Re: SEQUENCE primary key