Re: very concerning, tables hopped from one database to

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: very concerning, tables hopped from one database to
Дата
Msg-id Pine.LNX.4.30.0204221615370.692-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: very concerning, tables hopped from one database to  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane writes:

> > Perhaps the socket blew up and psql reconnected to template1?
>
> I think psql will attempt automatic reconnection after a connection
> failure in some cases, but AFAIK it should always reconnect to the last
> database in use.  (Hmm, but if it had originally connected to template1,
> and the \connect to hmzbook was inside a script, maybe the reconnect
> would go to template1?  Peter, can you give us any insight on the
> possible behaviors there?)

psql only attempts to reconnect to anything if the session is interactive.
Otherwise psql exits right there if the connection went bad (independent
of ON_ERROR_STOP).

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: "Peter Darley"
Дата:
Сообщение: Possible pl/pgsql bug
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: Which OS better for postgresql? FreeBSD or Linux?