Re: DSM segment handle generation in background workers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DSM segment handle generation in background workers
Дата
Msg-id 7673.1542209103@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DSM segment handle generation in background workers  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: DSM segment handle generation in background workers  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> What do you think about the attached?

I think you need to cast MyStartTimestamp to uint64 before shifting
to ensure portable behavior of the shifts.  In principle it wouldn't
matter because the int64 sign bit is nowhere near the part we care
about, but I've heard some pretty wild claims about what compiler
writers are entitled to do with "undefined" cases.

            regards, tom lane


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: [PATCH] Memory leak in pg_config
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: Refactoring the checkpointer's fsync request queue