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
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.