mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Remove unused for_all_tables field from AlterPublicationStmt.
No backpatch as AlterPublicationStmt struct is exposed. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/CAD21AoC6B6AuxWOST-TkxUbDgp8FwX=BLEJZmKLG_VrH-hfxpA@mail.gmail.com
This commit is contained in:
@@ -1855,8 +1855,6 @@ PublicationAddTables(Oid pubid, List *rels, bool if_not_exists,
|
|||||||
{
|
{
|
||||||
ListCell *lc;
|
ListCell *lc;
|
||||||
|
|
||||||
Assert(!stmt || !stmt->for_all_tables);
|
|
||||||
|
|
||||||
foreach(lc, rels)
|
foreach(lc, rels)
|
||||||
{
|
{
|
||||||
PublicationRelInfo *pub_rel = (PublicationRelInfo *) lfirst(lc);
|
PublicationRelInfo *pub_rel = (PublicationRelInfo *) lfirst(lc);
|
||||||
@@ -1934,8 +1932,6 @@ PublicationAddSchemas(Oid pubid, List *schemas, bool if_not_exists,
|
|||||||
{
|
{
|
||||||
ListCell *lc;
|
ListCell *lc;
|
||||||
|
|
||||||
Assert(!stmt || !stmt->for_all_tables);
|
|
||||||
|
|
||||||
foreach(lc, schemas)
|
foreach(lc, schemas)
|
||||||
{
|
{
|
||||||
Oid schemaid = lfirst_oid(lc);
|
Oid schemaid = lfirst_oid(lc);
|
||||||
|
|||||||
@@ -4320,7 +4320,6 @@ typedef struct AlterPublicationStmt
|
|||||||
* objects.
|
* objects.
|
||||||
*/
|
*/
|
||||||
List *pubobjects; /* Optional list of publication objects */
|
List *pubobjects; /* Optional list of publication objects */
|
||||||
bool for_all_tables; /* Special publication for all tables in db */
|
|
||||||
AlterPublicationAction action; /* What action to perform with the given
|
AlterPublicationAction action; /* What action to perform with the given
|
||||||
* objects */
|
* objects */
|
||||||
} AlterPublicationStmt;
|
} AlterPublicationStmt;
|
||||||
|
|||||||
Reference in New Issue
Block a user