Re: [HACKERS] Get OID of just inserted record - Mailing list pgsql-hackers

From wieck@debis.com (Jan Wieck)
Subject Re: [HACKERS] Get OID of just inserted record
Date
Msg-id m11iSOS-0003kLC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to Get OID of just inserted record  ("Andrij Korud" <akorud@polynet.lviv.ua>)
Responses Re: [HACKERS] Get OID of just inserted record  ("Andrij Korud" <akorud@polynet.lviv.ua>)
List 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@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: Re: [HACKERS] Backend terminated abnormally
Next
From: Lamar Owen
Date:
Subject: Re: [HACKERS] change in name of perl?