Search Postgresql Archives

Re: missing public on schema public

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have some additional info and a fix.

 

Firstly steps to reproduce:

 

1.  create database:

CREATE DATABASE test WITH ENCODING='UTF8' OWNER=postgres CONNECTION LIMIT=-1;

-- here public has access to public

 

2. dump:

pg_dump -f testfile.dump -F c -h localhost -U postgres test

 

3. restore:

pg_restore -c -d testfile.dump -h localhost -U postgres test

-- here public no longer has access to schema public

 

It is easily fixable with:

GRANT ALL ON SCHEMA public TO public;

 

And the issue goes away.. (privilege stays after next dump/restore)

 

So. What am I missing?

Is this intentional functionality ?

 

Kind regards and again thank you for your time

 

Bo Thorbjørn Jensen


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux