From: | Marc Munro <marc(at)bloodnok(dot)com> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | pg_dump No comment for policy |
Date: | 2020-02-16 21:41:38 |
Message-ID: | 1581889298.18009.15.camel@bloodnok.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-02-16 22:11:19 | Re: BUG #16260: Repetitive accessing to partitioned table inside transaction causes server process crash |
Previous Message | Tom Lane | 2020-02-16 17:21:17 | Re: BUG #16259: Cannot Use "pg_ctl start -l logfile" on Clean Install on Windows Server 2012/2016 |