Re: [HACKERS] BEGIN vs START TRANSACTION - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] BEGIN vs START TRANSACTION
Date
Msg-id 4700.1068481400@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] BEGIN vs START TRANSACTION  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] BEGIN vs START TRANSACTION  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] BEGIN vs START TRANSACTION
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] BEGIN vs START TRANSACTION