Re: serial type vs. sequences - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: serial type vs. sequences
Date
Msg-id 3FB2ACFC.9080109@commandprompt.com
Whole thread Raw
In response to serial type vs. sequences  (Suchandra Thapa <s-thapa-11@alumni.uchicago.edu>)
Responses Re: serial type vs. sequences
List pgsql-general
You are accurate.

Suchandra Thapa wrote:

>I was wondering if there was a reliable method to get the last id
>inserted into a serial column in a table.  I believe previous
>recommendations given were to use a sequence, have your app get the
>nextval for the sequence and then use that in the insert.  I was
>wondering if things had changed or if that is still the recommended
>method.
>
>
>

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-222-2783 - jd@commandprompt.com - http://www.commandprompt.com
Editor-N-Chief - PostgreSQl.Org - http://www.postgresql.org



pgsql-general by date:

Previous
From: Mark Harrison
Date:
Subject: how can I change a btree index into a hash index?
Next
From: Jan Wieck
Date:
Subject: Re: serial type vs. sequences