Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)
Дата
Msg-id YNlCAhkb3FVmE0ld@paquier.xyz
обсуждение исходный текст
Ответ на Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)  (Peter Smith <smithpb2250@gmail.com>)
Ответы Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
On Mon, Jun 28, 2021 at 10:17:55AM +1000, Peter Smith wrote:
> IIUC for the case ALTER_SUBSCRIPTION_DROP_PUBLICATION it looks like
> the uninitialized copy_data local stack var would remain uninitialized
> (undefined) still at the time it is passed at
> AlterSubscription_refresh(sub, copy_data);

Yes, that's wrong.  AlterSubscription_refresh() would happily look at
this uninitialized value when performing a refresh with this command.
That's the only code path using parse_subscription_options() with this
pattern.  Applied on HEAD.
--
Michael

Вложения

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

Предыдущее
От: Tatsuro Yamada
Дата:
Сообщение: Re: Farewell greeting
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: fdatasync performance problem with large number of DB files