Re: auto-reconnect: temp schemas, sequences, transactions

Поиск
Список
Период
Сортировка
От 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  (Marek Więckowski <wieckom@foxi.nl>)
Список 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 по дате отправления:

Предыдущее
От: Michael Graham
Дата:
Сообщение: Re: Rearranging simple where clauses
Следующее
От: Marek Więckowski
Дата:
Сообщение: Re: auto-reconnect: temp schemas, sequences, transactions