Re: [HACKERS] Get OID of just inserted record

Поиск
Список
Период
Сортировка
От wieck@debis.com (Jan Wieck)
Тема Re: [HACKERS] Get OID of just inserted record
Дата
Msg-id m11iSOS-0003kLC@orion.SAPserv.Hamburg.dsh.de
обсуждение исходный текст
Ответ на Get OID of just inserted record  ("Andrij Korud" <akorud@polynet.lviv.ua>)
Ответы Re: [HACKERS] Get OID of just inserted record  ("Andrij Korud" <akorud@polynet.lviv.ua>)
Список 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 по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: [HACKERS] Backend terminated abnormally
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: [HACKERS] change in name of perl?