RE: Add support for specifying tables in pg_createsubscriber.
От
Zhijie Hou (Fujitsu)
Тема
RE: Add support for specifying tables in pg_createsubscriber.
Дата
Msg-id
TY4PR01MB16907D0161A3CB98533F62650943EA@TY4PR01MB16907.jpnprd01.prod.outlook.com
Ответ на
Список
Дерево обсуждения
Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
RE: Add support for specifying tables in pg_createsubscriber. "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Andrew Dunstan <andrew@dunslane.net>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Andrew Dunstan <andrew@dunslane.net>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Andrew Dunstan <andrew@dunslane.net>
Re: Add support for specifying tables in pg_createsubscriber. vignesh C <vignesh21@gmail.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
Re: Add support for specifying tables in pg_createsubscriber. Amit Kapila <amit.kapila16@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Chao Li <li.evan.chao@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Chao Li <li.evan.chao@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Chao Li <li.evan.chao@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. vignesh C <vignesh21@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re:Re: Add support for specifying tables in pg_createsubscriber. tianbing <tian_bing_0531@163.com>
Re: Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Re: Add support for specifying tables in pg_createsubscriber. vignesh C <vignesh21@gmail.com>
Re: Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
Re: Add support for specifying tables in pg_createsubscriber. Shubham Khanna <khannashubham1197@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. "Euler Taveira" <euler@eulerto.com>
RE: Add support for specifying tables in pg_createsubscriber. "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Add support for specifying tables in pg_createsubscriber. Peter Smith <smithpb2250@gmail.com>
Re: Add support for specifying tables in pg_createsubscriber. vignesh C <vignesh21@gmail.com>
On Monday, August 25, 2025 8:08 AM Peter Smith wrote: > > IIUC, the only purpose of the proposed '--table' spec is to allow some users the > ability to tweak the default "CREATE PUBLICATION p FOR ALL TABLES;" that > the 'pg_createsubscriber' tool would otherwise construct. > > But --table is introducing problems too: e.g. > - tricky option ordering rules (e.g. most recent --database if dbname not > specified?) > - too many --table may be needed; redundant repeating of databases and > schemas also seems very verbose. > - limitations for syntax (e.g. what about FOR TABLES IN SCHEMA?) > - limitations for future syntax (e.g. what about SEQUENCES?; what about > EXCEPT?) > > Can these problems disappear just by slightly changing the meaning of the > existing '--publication' option to allow specifying more than just the > publication name: e.g. > --publication = 'pub1' ==> "CREATE PUBLICATION pub1 FOR ALL TABLES;" > --publication = 'pub1 FOR TABLE t1,t2(c1,c2),t3' ==> "CREATE > PUBLICATION pub1 FOR TABLE t1,t2(c1,c2),t3;" > --publication = 'pub1 FOR TABLES IN SCHEMA s1' ==> "CREATE > PUBLICATION > pub1 FOR TABLES IN SCHEMA s1;" > --publication = 'pub1 FOR ALL TABLES WITH (publish_via_partition_root)' > ==> "CREATE PUBLICATION pub1 FOR ALL TABLES WITH > (publish_via_partition_root);" I think embedding commands directly in the option value poses SQL injection risks, so is not very safe. We could directly allow users to use an existing publication (as mentioned by Euler[1]). [1] https://www.postgresql.org/message-id/30cc34eb-07a0-4b55-b4fe-6c526886b2c4%40app.fastmail.com Best Regards, Hou zj
В списке pgsql-hackers по дате отправления
От: Zhijie Hou (Fujitsu)
Дата:
От: Nishant Sharma
Дата: