Re: Implementing RESET CONNECTION ... - Mailing list pgsql-patches

From Oliver Jowett
Subject Re: Implementing RESET CONNECTION ...
Date
Msg-id 41D9F255.2030201@opencloud.com
Whole thread Raw
In response to Re: Implementing RESET CONNECTION ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:

> Fair point, but you could make the same argument against *any* side
> effect of RESET CONNECTION.  You're just complaining about PREPARE
> because you can see immediately where that breaks JDBC.  Anything that
> any driver does to set up per-connection state the way it wants will
> be equally vulnerable.

Yes, exactly.

> Perhaps RESET CONNECTION should be a protocol-level operation instead
> of a SQL command?  That would prevent user-level code from causing it
> without the driver knowing.

I just suggested as much in another email (our emails crossed).

-O

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Implementing RESET CONNECTION ...
Next
From: Heikki Linnakangas
Date:
Subject: ipcrm or ipcclean hint