Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrbNk-00080n-Bh for pgsql-hackers@arkaria.postgresql.org; Thu, 19 May 2022 08:19:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrbNj-000550-83 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 May 2022 08:19:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrbNi-00054r-Vj for pgsql-hackers@lists.postgresql.org; Thu, 19 May 2022 08:19:38 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrbNg-0005t1-Tw for pgsql-hackers@lists.postgresql.org; Thu, 19 May 2022 08:19:37 +0000 Received: by mail-qv1-xf34.google.com with SMTP id p3so4081816qvi.7 for ; Thu, 19 May 2022 01:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1TFjpEBRBYrT/5cpjtNzOx6oAs2r5rxmLobManjkvHA=; b=AXh8CpNK9rePeRvHNyZ2pM8Xq+0w4evDhTYVPim1RPL/PpkZFulxZHyd/Inck+M+VY uuPs+SKVVsZrroWtZ7UgpCDf1eNgzpeqWksce9U6MkPB8Aeq4N24he+QV7lwamr8kRJe t5o7w7yGWeK9IG+CLyqeVsYdWF57Fax+8AZyvRFg8Xisp8l4p8h2YtkXSqFA0G2UXfZ9 fluM0DbpcrmMEWrt9Ef+rAqbfw1cmawHMGaUELRgatMTSdQ086Yp5e3RRpFN3VcMMWaC fJy1kGRaODv4miU+I4rFFLOUTKOzGp+tPTpo2GZ8/QayOLDTzBZWr5w8zGDRrRBgVrp3 bVyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1TFjpEBRBYrT/5cpjtNzOx6oAs2r5rxmLobManjkvHA=; b=6C4KW0YKNow61C5zM6yTFwb5YMHudU+DL2EuazrxUFz3GnS5YomUN0356nRChYjUkl 5z40frJRZTJ1TXSa5TNujcsTh80dHGC10A4vifDgOAxprjoJYxoKCVoX6rQiD62pQ/P4 W30rwtQ7Ym3ESiogJG2QFQ00k8ISuNYuAJFjIZSKsJpW+by7CjAGq5frnNIq8Y4MPrN+ gICkCumaq1z5oD5OGtO+gXO191szy1Pt0zKAIYmmG85cyt3/YMZE0/g+aFVyGPZhQkuH sAwDflWgcWCCNmQXcewG0y8LhK33Xm4qfqfm+NUKlLC5IwgbrT6pVumhAtgVbBm04VXY TCeg== X-Gm-Message-State: AOAM533zppNdi/SLyUWVLN7dsUoAg/vAhun8cDEOEFyLAUQSybjiEUZh PYMfQwLDdlSk2VdMlBva30WQpNbpZnuxjHPlCho= X-Google-Smtp-Source: ABdhPJxqZ3apC2PUD5qLIhM7Xzh+67Z+cM7k97Ey2Pwr6dkoquhvwnByuPlz2oKZvrLsLqhpIVvpgZt1BkltRm7mhx4= X-Received: by 2002:a05:6214:f2a:b0:45a:f7ca:f7c6 with SMTP id iw10-20020a0562140f2a00b0045af7caf7c6mr3209855qvb.26.1652948375991; Thu, 19 May 2022 01:19:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Thu, 19 May 2022 18:19:19 +1000 Message-ID: Subject: Re: Skipping schema changes in publication To: vignesh C Cc: "osumi.takamichi@fujitsu.com" , Amit Kapila , Bharath Rupireddy , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Below are my review comments for v6-0001. ====== 1. General. The patch failed 'publication' tests in the make check phase. Please add this work to the commit-fest so that the 'cfbot' can report such errors sooner. ~~~ 2. src/backend/commands/publicationcmds.c - AlterPublicationReset +/* + * Reset the publication. + * + * Reset the publication options, publication relations and publication schemas. + */ +static void +AlterPublicationReset(ParseState *pstate, AlterPublicationStmt *stmt, + Relation rel, HeapTuple tup) SUGGESTION (Make the comment similar to the sgml text instead of repeating "publication" 4x !) /* * Reset the publication options, set the ALL TABLES flag to false, and * drop all relations and schemas that are associated with the publication. */ ~~~ 3. src/test/regress/expected/publication.out make check failed. The diff is below: @@ -1716,7 +1716,7 @@ -- Verify that only superuser can reset a publication ALTER PUBLICATION testpub_reset OWNER TO regress_publication_user2; SET ROLE regress_publication_user2; -ALTER PUBLICATION testpub_reset RESET; -- fail +ALTER PUBLICATION testpub_reset RESET; -- fail - must be superuser ERROR: must be superuser to RESET publication SET ROLE regress_publication_user; DROP PUBLICATION testpub_reset; ------ Kind Regards, Peter Smith. Fujitsu Australia