Re: very concerning, tables hopped from one database to

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Ford <david+cert(at)blue-labs(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: very concerning, tables hopped from one database to
Date: 2002-04-22 20:17:01
Message-ID: Pine.LNX.4.30.0204221615370.692-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2002-04-22 20:23:28 Re: Possible pl/pgsql bug
Previous Message Francisco Reyes 2002-04-22 19:28:11 Which OS better for postgresql? FreeBSD or Linux?