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

Re: [Re] Re: PREPARE and transactions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
Cc: Oliver Jowett <oliver(at)opencloud(dot)com>,pgsql-hackers(at)postgresql(dot)org
Subject: Re: [Re] Re: PREPARE and transactions
Date: 2004-07-03 03:05:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
"Jeroen T. Vermeulen" <jtv(at)xs4all(dot)nl> writes:
> I guess the question then becomes: should we see the frontend-backend
> protocol as a transport layer underneath, and conceptually separate from,
> the SQL session?  Or should the protocol be allowed to shine through in
> the way SQL itself is supported, and vice versa, so the two can share code
> and concepts?

One point here is that in the present design, statements prepared via
SQL-level PREPARE are intentionally interchangeable with statements
prepared via protocol-level Prepare messages.  You can create a
statement either way and then use it at either level.  Perhaps this was
a bad idea.  I think that if we decide to make the semantics of PREPARE
and Prepare different, it would be wise to separate the statement
namespaces so that PREPARE'd and Prepare'd statements are totally

It's late at night and I'm too lazy to go look right now, but I think
that the same is true of SQL-level cursors and protocol-level portals.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Abhijit Menon-SenDate: 2004-07-03 03:07:23
Subject: Re: PREPARE and transactions
Previous:From: Oliver JowettDate: 2004-07-03 02:59:58
Subject: Re: [Re] Re: PREPARE and transactions

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