Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Unmesh Churi" <churi(at)roguewave(dot)com>
Cc: pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: BUG #3015: libpq: PQftype() on a lo type result column returns Oid of type oid instead of Oid of type lo.
Date: 2007-02-16 05:57:12
Message-ID: 10980.1171605432@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Unmesh Churi" <churi(at)roguewave(dot)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

In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2007-02-16 21:00:41
Subject: Re: BUG #3012: Wrong JOIN order when a JOIN depends on result from a LEFT JOIN.
Previous:From: Tom LaneDate: 2007-02-16 03:52:34
Subject: Re: Segfaults and assertion failures with not too extraordinary views and queries

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group