| От | Tom Lane |
|---|---|
| Тема | Re: nonblocking libpq large object access? |
| Дата | |
| Msg-id | 8884.1076865528@sss.pgh.pa.us обсуждение |
| Ответ на | nonblocking libpq large object access? (David Helgason <david@uti.is>) |
| Ответы |
Re: nonblocking libpq large object access?
|
| Список | pgsql-general |
David Helgason <david@uti.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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера