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.89) (envelope-from ) id 1j3jMn-00085Y-At for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Feb 2020 16:35:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3jMm-0001JJ-5v for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Feb 2020 16:35:28 +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 1j3Rfd-0003fC-22 for pgsql-bugs@lists.postgresql.org; Sun, 16 Feb 2020 21:41:45 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3RfZ-0004mK-P8 for pgsql-bugs@lists.postgresql.org; Sun, 16 Feb 2020 21:41:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 829CC20DF3 for ; Sun, 16 Feb 2020 21:41:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XiKHyjhvz9uj for ; Sun, 16 Feb 2020 21:41:39 +0000 (UTC) Received: from major.bloodnok.com (107-190-22-212.cpe.teksavvy.com [107.190.22.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 28DC720D37 for ; Sun, 16 Feb 2020 21:41:38 +0000 (UTC) Message-ID: <1581889298.18009.15.camel@bloodnok.com> Subject: pg_dump No comment for policy From: Marc Munro To: pgsql-bugs@lists.postgresql.org Date: Sun, 16 Feb 2020 13:41:38 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Severity: Low PG Server: Versions 9.5 and 10.3 pg_dump: version 10.3 I have created a policy with a comment on it. pg_dump does not dump the comment. Here is my entire schema definition: -------------------------------------------------------------------- create table rls (   username text not null,   details  text not null ); create policy only_owner on rls   for all   to session_user   using (username = user)   with check (details != 'xyzzy'); comment on policy only_owner on public.rls is 'Another comment'; -------------------------------------------------------------------- pg_dump extracts the table and policy but not the comment. I can manually extract the comment with a query: select p.polname,         quote_literal(obj_description(p.oid, 'pg_policy')) as comment from pg_catalog.pg_policy p; Initially tried with postgres server 9.5.21 running from psql 10.3. Also tried with postgres server 10.3 running from psql 10.3. I am not at all anxious for this to be fixed. Just thought you should know. __ Marc