Re: lo_creat() bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: lo_creat() bug
Date: 2001-09-17 14:32:10
Message-ID: 4905.1000737130@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> If lo_initialize returns < 0, you have some pretty serious problems - out
> of memory, conn is invalid, etc. However, casting -1 to Oid returns what
> seems to be a valid Oid. Shouldn't it return InvalidOid?

Yes, evidently so. Good catch!

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Darren Johnson 2001-09-17 14:42:43 Re: Hot spare PSQL server
Previous Message Kevin 2001-09-17 14:19:44 BindColumn and Bulk Copy