[GENERAL] save PGresult to file.

Поиск
Список
Период
Сортировка
От Alexey Lesovsky
Тема [GENERAL] save PGresult to file.
Дата
Msg-id CAGnetYdmwt+fE=x20bYmBy4GDdyvA_fneiLz7ApWsdXn_c6Mqw@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi,

I'm trying to write a simple С program which sends a query to postgres and saves answer to a binary file. Next, I want to read the content from the binary file into an empty PGresult struct.

And I've faced with two problems, I don't know how to calculate size of returned PGresult struct and how to write struct' content entirely to file without PQgetvalue loops.

Is it possible and how to do it correctly?

--
Regards, Alexey


В списке pgsql-general по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [GENERAL] Feature request - psql --quote-variable
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: [GENERAL] postgresql how to duplicate rows in result.