Getting results after networking error

Поиск
Список
Период
Сортировка
От jtv@xs4all.nl
Тема Getting results after networking error
Дата
Msg-id 4395.210.86.147.191.1123600604.squirrel@210.86.147.191
обсуждение исходный текст
Ответы Re: Getting results after networking error
Список pgsql-interfaces
Hi all,

Here's something I've been trying to figure out about libpq, and I hope
perhaps someone here can shed some light on it.

I sometimes issue multiple queries at once using semicolons, so one call
returns multiple results.  Now let's say my network connection to the
backend breaks and not all the results can be returned--I get a result
with some error code (wish I knew which, but that's another story)
followed by a NULL result to indicate that no more results are following,
right?

Now let's say that I issue my next query and the network connection
recovers in the process.  I happily start retrieving results again, but
are they only results for the new query, or do I go through the remaining
results of the last query first?


Jeroen




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

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: pgperl vs dbd-perl
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Getting results after networking error