Re: Assertion failure in HEAD and 13 after calling COMMIT in a stored proc
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Assertion failure in HEAD and 13 after calling COMMIT in a stored proc |
| Дата | |
| Msg-id | 2559111.1624495865@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Assertion failure in HEAD and 13 after calling COMMIT in a stored proc (Greg Nancarrow <gregn4422@gmail.com>) |
| Ответы |
Re: Assertion failure in HEAD and 13 after calling COMMIT in a stored proc
|
| Список | pgsql-hackers |
Greg Nancarrow <gregn4422@gmail.com> writes:
> On Wed, Jun 23, 2021 at 11:01 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The comment is written in terms of "when can we
>> skip taking a snapshot", while the test in the code is written for
>> the inverse condition "when do we need a snapshot".
> Perhaps that code could have been written as the following, to better
> align with the comments:
> [ invert the variable's meaning ]
Yeah, perhaps. I remember feeling that the code was clearer this
way (because "if (!skip_snapshot)" seems a little backwards).
But it might be better to make the code fit the comment than to
try to invert the description in the comment.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера