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
|
| Список | 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 по дате отправления: