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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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