Re: Re: BUGFIX: standby disconnect can corrupt serialized reorderbuffers

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Re: BUGFIX: standby disconnect can corrupt serialized reorderbuffers
Дата
Msg-id 20180306214239.ospkf6ie7aa5gm4j@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Re: BUGFIX: standby disconnect can corrupt serialized reorder buffers  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Craig Ringer wrote:

> Revised patch attached.
> 
> I have _not_ rewritten to use sscanf yet. I'll do that next, so you can
> choose the fewer-changes patch for backpatching if desired.

Pushed, with a further change: it seems more sensible to centralize the
whole operation of building the path, rather than just the format
string, so I created a new function to do that.  The code looks cleaner
IMO this way IMO.  All tests pass in all branches.

BTW the way the XLogSegNoOffsetToRecPtr() et al macros were modified to
accept wal_segment_size at the end of the argument list, *after* the
output argument, seems pretty bad style.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: public schema default ACL
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [HACKERS] Support for Secure Transport SSL library on macOS as OpenSSL alternative