On Mon, Feb 17, 2020 at 12:59:37PM -0500, Tom Lane wrote:
> Marc Munro <marc@bloodnok.com> 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 <tgl@sss.pgh.pa.us>
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 <bruce@momjian.us> 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 +