Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block
Дата
Msg-id 8247.1385482959@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> On Mon, Nov 25, 2013 at 10:04:19PM -0500, Robert Haas wrote:
>> But the documentation says:
>> 
>> -   Issuing <command>ABORT</> when not inside a transaction does
>> -   no harm, but it will provoke a warning message.
>> +   Issuing <command>ABORT</> outside of a transaction block has no effect.
>> 
>> Those things are not the same.

> Uh, I ended up mentioning "no effect" to highlight it does nothing,
> rather than mention a warning.  Would people prefer I say "warning"?  Or
> should I say "issues a warning because it has no effect" or something? 
> It is easy to change.

I'd revert the change Robert highlights above.  ISTM you've changed the
code to match the documentation; why would you then change the docs?
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UNION ALL on partitioned tables won't use indices.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extension Templates S03E11