serial type vs. sequences - Mailing list pgsql-general

From Suchandra Thapa
Subject serial type vs. sequences
Date
Msg-id 1068670760.5193.43.camel@hepcat
Whole thread Raw
Responses Re: serial type vs. sequences  (Bruno Wolff III <bruno@wolff.to>)
Re: serial type vs. sequences  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-general
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.

--
Suchandra Thapa <s-thapa-11@alumni.uchicago.edu>

Attachment

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Proposal for a cascaded master-slave replication system
Next
From: Bruno Wolff III
Date:
Subject: Re: serial type vs. sequences