]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove unused for_all_tables field from AlterPublicationStmt.
authorMasahiko Sawada <msawada@postgresql.org>
Fri, 26 Sep 2025 16:23:00 +0000 (09:23 -0700)
committerMasahiko Sawada <msawada@postgresql.org>
Fri, 26 Sep 2025 16:23:00 +0000 (09:23 -0700)
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

src/backend/commands/publicationcmds.c
src/include/nodes/parsenodes.h

index 3de5687461c857e73a6b6bdd3f19932bfd67e4ce..f4fc17acbe10fd26337313dcd2bff48f24dad485 100644 (file)
@@ -1855,8 +1855,6 @@ PublicationAddTables(Oid pubid, List *rels, bool if_not_exists,
 {
        ListCell   *lc;
 
-       Assert(!stmt || !stmt->for_all_tables);
-
        foreach(lc, rels)
        {
                PublicationRelInfo *pub_rel = (PublicationRelInfo *) lfirst(lc);
@@ -1934,8 +1932,6 @@ PublicationAddSchemas(Oid pubid, List *schemas, bool if_not_exists,
 {
        ListCell   *lc;
 
-       Assert(!stmt || !stmt->for_all_tables);
-
        foreach(lc, schemas)
        {
                Oid                     schemaid = lfirst_oid(lc);
index 4ed14fc5b78b6379be925b122140c454e24dff65..f1706df58fdac05f5f6fc44e63430ba292ba1c43 100644 (file)
@@ -4320,7 +4320,6 @@ typedef struct AlterPublicationStmt
         * 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
                                                                         * objects */
 } AlterPublicationStmt;