Re: [HACKERS] BEGIN vs START TRANSACTION

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, 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:23:20
Message-ID: 4700.1068481400@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Jan Wieck wrote:
>> 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?

> Yea, we could do that, and if it was hard to add, we would, but it seems
> easier to just say BEGIN and START TRANSACTION are the same except the
> later is standard, rather than have the later have additional
> functionality too.

IIRC, the code patch only added about two lines to gram.y. It seems a
bit silly to add *more* lines of documentation to explain that the two
statements aren't alike than it would take lines of code to make them
work alike.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Clift 2003-11-10 16:24:31 Re: [HACKERS] Changes to Contributor List
Previous Message Bruce Momjian 2003-11-10 16:20:43 Re: [HACKERS] BEGIN vs START TRANSACTION

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2003-11-10 17:05:31 Re: [HACKERS] BEGIN vs START TRANSACTION
Previous Message Bruce Momjian 2003-11-10 16:20:43 Re: [HACKERS] BEGIN vs START TRANSACTION