Skip site navigation (1) Skip section navigation (2)

Re: PREPARE and transactions

From: Abhijit Menon-Sen <ams(at)oryx(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PREPARE and transactions
Date: 2004-07-03 02:50:17
Message-ID: 20040703082017.G1473@lustre.dyn.wiw.org (view raw or flat)
Thread:
Lists: pgsql-hackers
At 2004-06-24 13:13:42 -0400, tgl(at)sss(dot)pgh(dot)pa(dot)us wrote:
>
> > This is why I proposed originally to keep the non-transactional
> > behavior for Parse messages, but transactional for SQL PREPARE.
> > The latter can be said to be inside the transaction and should
> > behave like so.  I think this lowers the surprise factor.
>
> It seems like we are closing in on an agreement that that is what
> should happen.

As a client maintainer, I have no particular problem with the status quo
(apparently like Greg and Cyril), but I can appreciate the point made in
Jeroen's initial post in this thread, and I would not object to changing
PREPARE to be transactional while leaving Parse messages alone. Nor do I
have a problem with "PREPARE OR REPLACE".

But for what it's worth, I strongly dislike the later proposal of making
prepared statements anonymous, and pattern matching the statement text,
especially if they reintroduce the need to quote query parameters.

Ugh.

-- ams

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2004-07-03 02:51:56
Subject: Re: Adding column comment to information_schema.columns
Previous:From: Jeroen T. VermeulenDate: 2004-07-03 01:43:10
Subject: Re: [Re] Re: PREPARE and transactions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group