On Mon, Feb 17, 2020 at 12:59:37PM -0500, Tom Lane wrote:
> Marc Munro <[hidden email]> 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
Author: Tom Lane <[hidden email]>
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.