Re: first time hacker ;) messing with prepared statements - Mailing list pgsql-hackers

From Tom Lane
Subject Re: first time hacker ;) messing with prepared statements
Date
Msg-id 28827.1206911357@sss.pgh.pa.us
Whole thread Raw
In response to Re: first time hacker ;) messing with prepared statements  (Joris Dobbelsteen <joris@familiedobbelsteen.nl>)
Responses Re: first time hacker ;) messing with prepared statements  (PFC <lists@peufeu.com>)
List pgsql-hackers
Joris Dobbelsteen <joris@familiedobbelsteen.nl> writes:
> The MAJOR benefit of Microsoft's approach is that it works on existing 
> application, and, most importantly makes NO assumptions on the 
> "volatile" server state. A few cases where the Microsoft solution works, 
> while yours will fail is:

>     * Server restart and assorted like failover (you need to redo a
>       global prepare).

Hmm?  He's proposing storing the info in a system catalog.  That hardly
seems "volatile"; it'll certainly survive a server restart.

>     * Cleanup and instantiation of a prepared statement.

Again, it's not clear what you've got in mind.

I agree with the point that this isn't completely transparent to
applications, but if an app is already using named prepared statements
it would surely be a pretty small matter to make it use this feature.
The app code would likely get simpler instead of more complex, since
you'd stop worrying about whether a given statement had been prepared
yet in the current session.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch : Global Prepared Statements
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Connection to PostgreSQL Using Certificate: Wrong Permissions on Private Key File