libpq: why only one PQsendQuery per connection at a time?
В списке pgsql-general по дате отправления:
| От | sftf-misc@mail.ru |
|---|---|
| Тема | libpq: why only one PQsendQuery per connection at a time? |
| Дата | |
| Msg-id | 1382056210.20150104220211@mail.ru обсуждение исходный текст |
| Ответы |
Re: libpq: why only one PQsendQuery per connection at a time?
Re: libpq: why only one PQsendQuery per connection at a time? |
| Список | pgsql-general |
Hello! Question generally to (libpq) developers. According to http://www.postgresql.org/docs/9.4/static/libpq-async.html: "PQsendQuery cannot be called again (on the same connection) until PQgetResult has returned a null pointer, indicating that the command is done." As I guess this is also true for all PQsend* functions, like PQsendQueryPrepared, although this is not explicitly stated in the documentation. So question is why this limitaion exists? Why PQgetResult(PGconn *conn) operates on connection, and not on some unique handler that each "PQsend*" could return. Is it limitaion of libpq or architecture of postgresql backend or backend-frontend protocol?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера