Re: libpq: why only one PQsendQuery per connection at a time?
В списке pgsql-general по дате отправления:
| От | David G Johnston |
|---|---|
| Тема | Re: libpq: why only one PQsendQuery per connection at a time? |
| Дата | |
| Msg-id | 1420393538131-5832807.post@n5.nabble.com обсуждение исходный текст |
| Ответ на | libpq: why only one PQsendQuery per connection at a time? (sftf-misc@mail.ru) |
| Список | pgsql-general |
sftf-2 wrote > 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? IIUC this is a backend Postgres limitation - it was designed in a least complex way where each process acts in a serial fashion. A single process has no way to maintain concurrent state for multiple active queries. David J. -- View this message in context: http://postgresql.nabble.com/libpq-why-only-one-PQsendQuery-per-connection-at-a-time-tp5832803p5832807.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера