Re: SET TRANSACTION and SQL Standard - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SET TRANSACTION and SQL Standard
Date
Msg-id 22728.1231511989@sss.pgh.pa.us
Whole thread Raw
In response to Re: SET TRANSACTION and SQL Standard  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: SET TRANSACTION and SQL Standard  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Simon Riggs wrote:
>> I notice that we allow commands such as
>> SET TRANSACTION read only read write read only;
>> BEGIN TRANSACTION read only read only read only;

> Well, we allow a lot of things.  Violations of the SQL standard happen 
> when a command that appears in the standard doesn't do what the standard 
> says.  Allowing commands that are not in the standard is not a violation.

I agree that "spec violation" is not a good argument for rejecting
these.  However, self-consistency with our own common practice should
be considered.  In practically every utility command we have that takes
a list of options, we throw "conflicting or redundant options" errors
in similar cases.

My own feeling is that the second example is okay but the first should
be rejected, since (a) it's quite unclear what the user wants, and (b)
the ensuing behavior would be determined by implementation artifacts
like which order we processed the options in.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: parallel restore
Next
From: Simon Riggs
Date:
Subject: Re: SET TRANSACTION and SQL Standard