Re: [HACKERS] BEGIN vs START TRANSACTION

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Gaetano Mendola <mendola(at)bigfoot(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] BEGIN vs START TRANSACTION
Date: 2003-11-10 16:02:32
Message-ID: 3FAFB698.6020101@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:

> Tom Lane wrote:
>> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> > Peter Eisentraut wrote:
>> >> I object to adding unnecessary complications like that.
>>
>> > Shouldn't BEGIN and START TRANSACTION have the same mechanics? The
>> > changes to the code were the addition of only one line. The rest of the
>> > patch was docs.
>>
>> My initial reaction was the same as Peter's, but after seeing the small
>> size of the patch I reconsidered. It seems to make sense that BEGIN
>> should be an exact synonym for START TRANSACTION.
>
> Let me give you my logic on this --- if people think of BEGIN and START
> TRANSACTION as the same, and they do \h begin, they aren't going to see
> the read only and isolation options for START TRANSACTION, and I doubt
> they are going to think to look there because they think they are the
> same. That's why I think it is good to add those clauses to BEGIN
> WORK/TRANSACTION.
>

Since BEGIN isn't standard, wouldn't it be time to redirect them on the
BEGIN manpage to the START TRANSACTION manpage and tell them there that
BEGIN does not support the full syntax of START TRANSACTION?

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message scott.marlowe 2003-11-10 16:02:51 Re: Performance features the 4th
Previous Message Jan Wieck 2003-11-10 15:57:14 Re: Question for the developers.

Browse pgsql-patches by date

  From Date Subject
Next Message Jason Tishler 2003-11-10 16:06:47 Re: "make check" improvement for cygwin
Previous Message Christopher Kings-Lynne 2003-11-10 15:23:10 Re: "make check" improvement for cygwin