Re: pub/sub - specifying optional parameters without values.

Поиск
Список
Период
Сортировка
От Zheng Li
Тема Re: pub/sub - specifying optional parameters without values.
Дата
Msg-id 167328582545.1136.8620247763467087383.pgcf@coridan.postgresql.org
обсуждение исходный текст
Ответ на Re: pub/sub - specifying optional parameters without values.  (Peter Smith <smithpb2250@gmail.com>)
Ответы Re: pub/sub - specifying optional parameters without values.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

This documentation change looks good to me. I verified in testing and in code that the value for boolean parameters in
PUB/SUBcommands can be omitted. which is equivalent to specifying TRUE. For example,
 

CREATE PUBLICATIOIN mypub for ALL TABLES with (publish_via_partition_root);
is equivalent to
CREATE PUBLICATIOIN mypub for ALL TABLES with (publish_via_partition_root = TRUE);

The behavior is due to the following code
https://github.com/postgres/postgres/blob/master/src/backend/commands/define.c#L113

Marking this as ready for committer.

The new status of this patch is: Ready for Committer

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

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: wake up logical workers after ALTER SUBSCRIPTION
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: suppressing useless wakeups in logical/worker.c