Re: [HACKERS] Oid Questions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Oid Questions
Дата
Msg-id 199801222125.QAA14383@candle.pha.pa.us
обсуждение исходный текст
Ответ на Oid Questions  ("Michael J. Rogan" <mrogan@fpelectronics.com>)
Ответы Re: [HACKERS] Oid Questions  (Zeev Suraski <bourbon@netvision.net.il>)
Список pgsql-hackers
>
>
> Hello.
>
> Zeev Suraski  <zeev@php.net> is making some changes to the PostgreSQL code
> in PHP3 so that the Oid is returned in the pg_exec funtion if it is an
> insert.
>
> What is the size of the Oid (unsigned, signed etc) and will it ever be
> zero.

    typedef unsigned int Oid;

A zero value for OID is reserved for an Invalid OID.  If it returns a
zero, I would pass it back to the application.  You may want to call
libpq's PQoidStatus() to get this information.  That is a new function
for 6.2.1.

--
Bruce Momjian
maillist@candle.pha.pa.us

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Michael J. Rogan"
Дата:
Сообщение: Oid Questions
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Current open 6.3 issues