From: | Adam Mackler <pgsql-general(at)mackler(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | pg_dump recording privileges on foreign data wrappers |
Date: | 2017-03-30 17:58:06 |
Message-ID: | 20170330175806.GI59845@scruffle.mackler.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
If I grant a privilege on a foreign data wrapper like this:
GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO myuser;
from within psql, then a dump of the database produced using pg_dump
seems to lack an equivalent GRANT statement, even though it contains
the CREATE EXTENSION statement for that foreign data wrapper.
Am I usderstanding correctly that when I feed that output of pg_dump
back into psql it will result in a database that has the foreign data
wrapper but without the priviliges that were set in the database that
was dumped? Is that really what is supposed to happen? Is there a
way to get pg_dump to output the necessary statements such that
running the dump back through psql results in the same priviliges that
I started with?
I am using version 9.5.6.
Thanks very much,
--
Adam Mackler
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2017-03-30 18:25:39 | Re: inevitability of to_date() when converting representations which don't represent whole timestamps |
Previous Message | Adrian Klaver | 2017-03-30 17:13:55 | Re: Tablespace Default Behavior |