Re: [HACKERS] Get OID of just inserted record

From: wieck(at)debis(dot)com (Jan Wieck)
To: akorud(at)polynet(dot)lviv(dot)ua (Andrij Korud)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Get OID of just inserted record
Date: 1999-11-02 01:05:48
Message-ID: m11iSOS-0003kLC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Hi,
> Is there any way to obtain an OID of record just inserted by SPI_execp?

How should that work consistenty? What do you expect as
return if the query executed was an

INSERT INTO t2 SELECT * FROM t1;

The first, a random one or the last of the two million rows
inserted?

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 1999-11-02 01:07:20 Re: [HACKERS] Backend terminated abnormally
Previous Message Hiroshi Inoue 1999-11-02 00:36:35 RE: [HACKERS] using indices in ORDER BY ... DESC