Re: [HACKERS] Oid Questions

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: mrogan(at)fpelectronics(dot)com
Cc: hackers(at)postgreSQL(dot)org, zeev(at)php(dot)net
Subject: Re: [HACKERS] Oid Questions
Date: 1998-01-22 21:25:19
Message-ID: 199801222125.QAA14383@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
> Hello.
>
> Zeev Suraski <zeev(at)php(dot)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(at)candle(dot)pha(dot)pa(dot)us

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-01-22 21:40:54 Re: [HACKERS] Current open 6.3 issues
Previous Message Maarten Boekhold 1998-01-22 20:22:20 Re: [HACKERS] libpq++ linking