Re: recovery modules

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: recovery modules
Дата
Msg-id 20230202193700.GA3887858@nathanxps13
обсуждение исходный текст
Ответ на Re: recovery modules  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: recovery modules
Список pgsql-hackers
On Thu, Feb 02, 2023 at 02:34:17PM +0900, Michael Paquier wrote:
> Okay, the changes done here look straight-forward seen from here.  I
> got one small-ish comment.
> 
> +basic_archive_startup(ArchiveModuleState *state)
> +{
> +   BasicArchiveData *data = palloc0(sizeof(BasicArchiveData));
> 
> Perhaps this should use MemoryContextAlloc() rather than a plain
> palloc().  This should not matter based on the position where the
> startup callback is called, still that may be a pattern worth
> encouraging.

Good call.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Schema variables - new implementation for Postgres 15 (typo)
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Amcheck verification of GiST and GIN