Re: Re-run query on automatic reconnect - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: Re-run query on automatic reconnect
Date
Msg-id 20050926205202.GA37038@winnie.fuhr.org
Whole thread Raw
In response to Re-run query on automatic reconnect  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: Re-run query on automatic reconnect
List pgsql-hackers
On Mon, Sep 26, 2005 at 01:23:03PM -0500, Jim C. Nasby wrote:
> Is there any particular reason why psql doesn't re-run a query that
> failed due to disconnect from the server after re-connecting? I've
> thought maybe it's because it might somehow be dangerous, but I can't
> think of any case where that's actually true.

What if the query itself resulted in the disconnect by causing the
backend to crash?  Re-running such a query automatically would be
a bad idea.  Or did I misunderstand what you're asking?

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Patching dblink.c to avoid warning about open transaction
Next
From: "Magnus Hagander"
Date:
Subject: Re: Open items list for 8.1