Re: SET TRANSACTION and SQL Standard

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: SET TRANSACTION and SQL Standard
Дата
Msg-id 496B5CB6.2050704@gmx.net
обсуждение исходный текст
Ответ на Re: SET TRANSACTION and SQL Standard  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SET TRANSACTION and SQL Standard  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Recovery Test Framework
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SET TRANSACTION and SQL Standard