| От | Tom Lane |
|---|---|
| Тема | Re: gcc -Wclobbered in PostgresMain |
| Дата | |
| Msg-id | 2231130.1689005839@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: gcc -Wclobbered in PostgresMain (Sergey Shinderuk <s.shinderuk@postgrespro.ru>) |
| Список | pgsql-hackers |
Sergey Shinderuk <s.shinderuk@postgrespro.ru> writes:
> On 08.07.2023 18:11, Tom Lane wrote:
>> Having done that, it wouldn't really be necessary to mark these
>> as volatile. I kept that marking anyway for consistency with
>> send_ready_for_query, but perhaps we shouldn't?
> I don't know. Maybe marking them volatile is more future proof. Not sure.
Yeah, after sleeping on it, it seems best to have a policy that all
variables declared in that place are volatile. Even if there's no bug
now, not having volatile creates a risk of surprising behavior after
future changes. Pushed that way.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера