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

From Peter Eisentraut
Subject Re: SET TRANSACTION and SQL Standard
Date
Msg-id 496B5CB6.2050704@gmx.net
Whole thread Raw
In response to Re: SET TRANSACTION and SQL Standard  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SET TRANSACTION and SQL Standard  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> 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;

> 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.

I think this might be best solved by providing a common function that 
checks a DefElem list for duplicates.  This could be used in a number of 
other places as well (grep for "conflicting or redundant options").


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Recovery Test Framework
Next
From: Tom Lane
Date:
Subject: Re: SET TRANSACTION and SQL Standard