Re: Schema dump/restore not restoring grants on the schema

2019-10-01 Thread Adrian Klaver
On 10/1/19 8:49 AM, Mike Roest wrote: Thanks for the reply Tom,    We're going to look at removing the filtering on the pg_restore which I think should allow us to move forward since we have the pg_dump already filtered. It will. If you want to verify do: pg_restore -f testschema.txt test.b

Re: Schema dump/restore not restoring grants on the schema

2019-10-01 Thread Adrian Klaver
On 10/1/19 7:53 AM, Tom Lane wrote: Mike Roest writes: Just trying to find out if something is intended behaviour. When doing a schema filtered pg_dump the created dump file includes the grants on that specific schema (in our case a grant usage to a unprivleged user) but doing a pg_restore

Re: Schema dump/restore not restoring grants on the schema

2019-10-01 Thread Mike Roest
Thanks for the reply Tom, We're going to look at removing the filtering on the pg_restore which I think should allow us to move forward since we have the pg_dump already filtered. --Mike

Re: Schema dump/restore not restoring grants on the schema

2019-10-01 Thread Tom Lane
Mike Roest writes: >Just trying to find out if something is intended behaviour. When doing a > schema filtered pg_dump the created dump file includes the grants on that > specific schema (in our case a grant usage to a unprivleged user) but doing > a pg_restore with a -n does not restore that

Schema dump/restore not restoring grants on the schema

2019-10-01 Thread Mike Roest
Hi There, Just trying to find out if something is intended behaviour. When doing a schema filtered pg_dump the created dump file includes the grants on that specific schema (in our case a grant usage to a unprivleged user) but doing a pg_restore with a -n does not restore that grant however ind