Re: [HACKERS] Something for the TODO list: deprecating abstime and friends

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Something for the TODO list: deprecating abstime and friends
Дата
Msg-id 9192.1500490591@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Something for the TODO list: deprecating abstime and friends  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Something for the TODO list: deprecating abstime and friends  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
I wrote:
> Hm.  Currently sizeof(struct ControlFileData) = 296, at least on my
> machine.  Letting it grow past 512 would be problematic.  It's hard
> to see getting to that any time soon, though; we don't add fields
> there often.

I wonder if it'd be worth the trouble to stick something like this into
xlog.c:
/* * For reliability's sake, it's critical that pg_control updates * be atomic writes.  That generally means the active
datacan't * be more than one disk sector, which is 512 bytes on common * hardware.  Be very careful about raising this
limit.*/ StaticAssertStmt(sizeof(ControlFileData) <= 512,                  "pg_control is too large for atomic disk
writes");

        regards, tom lane



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

Предыдущее
От: Robins Tharakan
Дата:
Сообщение: Re: [HACKERS] Patch: Add --no-comments to skip COMMENTs with pg_dump
Следующее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: [HACKERS] Patch: Add --no-comments to skip COMMENTs with pg_dump