Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEOIn-0002BF-QV for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2020 02:19:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEOIm-0004EY-Bp for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2020 02:19:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEOIm-0004ER-45 for pgsql-bugs@lists.postgresql.org; Wed, 18 Mar 2020 02:19:24 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEOIi-0004T9-Ou for pgsql-bugs@lists.postgresql.org; Wed, 18 Mar 2020 02:19:23 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jEOIg-0007Qm-Dr; Tue, 17 Mar 2020 22:19:18 -0400 Date: Tue, 17 Mar 2020 22:19:18 -0400 From: Bruce Momjian To: Tom Lane Cc: Marc Munro , pgsql-bugs@lists.postgresql.org Subject: Re: pg_dump No comment for policy Message-ID: <20200318021918.GA28233@momjian.us> References: <1581889298.18009.15.camel@bloodnok.com> <8932.1581962377@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8932.1581962377@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Feb 17, 2020 at 12:59:37PM -0500, Tom Lane wrote: > Marc Munro writes: > > I have created a policy with a comment on it. pg_dump does not dump > > the comment. > > Ugh, yeah, there's no dumpComment() call in dumpPolicy(). > > Easy enough to fix, but now I wonder if we missed the same elsewhere. FYI, this was fixed on February 17 and will appear in the next minor release: commit f31364676d Author: Tom Lane Date: Mon Feb 17 18:40:02 2020 -0500 Teach pg_dump to dump comments on RLS policy objects. This was unaccountably omitted in the original RLS patch. The SQL syntax is basically the same as for comments on triggers, so crib code from dumpTrigger(). Per report from Marc Munro. Back-patch to all supported branches. Discussion: https://postgr.es/m/1581889298.18009.15.camel@bloodnok.com -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +