pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <gsstark@mit.edu>
To: Georgi Kolev <geo_kolev@mail.ru>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQoidValue - get last ID of primary key after INSERT - small
Date: 16 Aug 2006 20:34:58 -0400
Message-ID: <87psf0xkr1.fsf@stark.xeocode.com> (raw)
In-Reply-To: <ebi92p$8ae$1@sea.gmane.org>
References: <ebchh2$opp$1@sea.gmane.org>
	<17604.1155235245@sss.pgh.pa.us>
	<ebi92p$8ae$1@sea.gmane.org>

Georgi Kolev <geo_kolev@mail.ru> writes:

> I agree that the solution INSERT...RETURNING is more general and flexible. But
> I think if we have such a solution as @@identity as in Sybase, PostgreSQL will
> be much more compatible and adoptable for migrations.

What characteristic does @@identity have that lastval() lacks? 


-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com




view thread (4+ messages)

Message-ID: <87psf0xkr1.fsf@stark.xeocode.com>
Permalink:  ../87psf0xkr1.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/87psf0xkr1.fsf@stark.xeocode.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gsstark@mit.edu, geo_kolev@mail.ru
  Subject: Re: PQoidValue - get last ID of primary key after INSERT - small
  In-Reply-To: <87psf0xkr1.fsf@stark.xeocode.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox