Re: BUG #3015: libpq: PQftype() on a lo type result column returns Oid of type oid instead of Oid of type lo. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3015: libpq: PQftype() on a lo type result column returns Oid of type oid instead of Oid of type lo.
Date
Msg-id 10980.1171605432@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #3015: libpq: PQftype() on a lo type result column returns Oid of type oid instead of Oid of type lo.  ("Unmesh Churi" <churi@roguewave.com>)
List pgsql-bugs
"Unmesh Churi" <churi@roguewave.com> writes:
> Thanks Tom. I used to rely on the PQftype() to determine if the OIDs
> stored in that result field are pointing to large objects or not. If
> they are large objects, I used to fetch them using lo_* API.
> Now since PQftype() returns type oid for type lo columns, how will I
> identify if a result column contains large objects or not?

Do you need to identify that?  What other use-case has your application
got for fetching OID columns?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Segfaults and assertion failures with not too extraordinary views and queries
Next
From: Tom Lane
Date:
Subject: Re: BUG #3012: Wrong JOIN order when a JOIN depends on result from a LEFT JOIN.