Re: lo_creat() bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: lo_creat() bug
Date
Msg-id 4905.1000737130@sss.pgh.pa.us
Whole thread Raw
In response to lo_creat() bug  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
Gavin Sherry <swm@linuxworld.com.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


pgsql-hackers by date:

Previous
From: "kevin"
Date:
Subject: Re: how to extend the catalog?
Next
From: "Chris Boyle"
Date:
Subject: Re: NewYork Bombing: SQL server bomb proof!!