Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block |
| Дата | |
| Msg-id | 30828.1383950183@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 |
[ I'm so far behind ... ]
Bruce Momjian <bruce@momjian.us> writes:
> Applied. Thank you for all your suggestions.
I thought the suggestion had been to issue a *warning*. How did that
become an error? This patch seems likely to break applications that
may have just been harmlessly sloppy about when they were issuing
SETs and/or what flavor of SET they use. We don't for example throw
an error for START TRANSACTION with an open transaction or COMMIT or
ROLLBACK without one --- how can it possibly be argued that these
operations are more dangerous than those cases?
I'd personally have voted for using NOTICE.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера