Re: nonblocking libpq large object access?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Helgason <david(at)uti(dot)is>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: nonblocking libpq large object access?
Date: 2004-02-15 17:18:48
Message-ID: 8884.1076865528@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Helgason <david(at)uti(dot)is> writes:
> I was just wondering whether this was either:
> - supported, or
> - doable,

AFAIK no one has tried to make it work. Offhand it seems you'd need
to modify the API for libpq's LO operations in order to handle this.

A workaround you could think about is invoking the LO functions via
ordinary SELECT commands, ignoring libpq's LO API altogether. This
would have been rather painful in pre-7.4 releases since you'd have
to be willing to deal with quoting and dequoting "bytea" values, but
as of 7.4 you could use PQsendQueryParams() and specify binary format
for the bytea inputs and results.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Helgason 2004-02-15 18:49:04 Re: nonblocking libpq large object access?
Previous Message Tom Lane 2004-02-15 17:07:28 Re: Using NOTIFY... Slow Client Querys