Re: auto-reconnect: temp schemas, sequences, transactions
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: auto-reconnect: temp schemas, sequences, transactions |
| Дата | |
| Msg-id | 12545.1304525056@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: auto-reconnect: temp schemas, sequences, transactions (Marek Więckowski <wieckom@foxi.nl>) |
| Ответы |
Re: auto-reconnect: temp schemas, sequences, transactions
|
| Список | pgsql-general |
Marek =?utf-8?q?Wi=C4=99ckowski?= <wieckom@foxi.nl> writes:
> If there is a script executed in psql there is no easy way to catch that psql
> has reconnected in the middle of it...
As far as psql goes, it should certainly abandon executing any script
file if it loses the connection. I rather thought it did already.
See the bit just above where you propose patching:
if (!pset.cur_cmd_interactive)
{
psql_error("connection to server was lost\n");
exit(EXIT_BADCONN);
}
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера