| От | Tom Lane |
|---|---|
| Тема | Re: modifying in the libpg files |
| Дата | |
| Msg-id | 16677.1177210534@sss.pgh.pa.us обсуждение |
| Ответ на | modifying in the libpg files ("Islam Hegazy" <islheg@gmail.com>) |
| Список | pgsql-interfaces |
"Islam Hegazy" <islheg@gmail.com> writes:
> ../../src/interfaces/libpq/libpq.so: undefined reference to =
> `PrintQueryResults'
libpq.so is a shared library --- you can't have it calling functions
that are not in either itself or a shared library it depends on.
You'd have to move PrintQueryTuples bodily into libpq.so to make this
work. There are various reasons why that's not a great idea, the
main one being that libpq has no idea where psql is intending to
send the output.
IMHO a reasonable solution would involve extending libpq's published API
to allow returning partial query results. This seems like it could be
made to fit into the PQsendQuery/PQgetResult paradigm, but nobody's
actually done that yet.
regards, tom lane
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера