Re: Return the primary key of a newly inserted row? - Mailing list pgsql-general

From John Tregea
Subject Re: Return the primary key of a newly inserted row?
Date
Msg-id 44A07FDD.8090701@debraneys.com
Whole thread Raw
In response to Re: Return the primary key of a newly inserted row?  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
Hi all,

Thanks for the continued suggestions on this question. I will reply
again once it is implemented and working.

Kind regards

John

Alban Hertroys wrote:
> Scott Ribe wrote:
>>> You won't have duplicates[1], it's a sequence. It's its purpose.
>>>
>>> Now I may have missed something, I didn't follow this thread.
>>
>>
>> Yes, what you quoted was more the intro. The actual question was how
>> to find
>> out what ids were generated during a sequence of insertions.
>
> That's where you use currval ;)
>

pgsql-general by date:

Previous
From: Mischa Sandberg
Date:
Subject: Re: list or regular expressions
Next
From: "Alex Turner"
Date:
Subject: Re: RAID + PostgreSQL?