Re: [GENERAL] missing public on schema public
| От | Bo Thorbjørn Jensen |
|---|---|
| Тема | Re: [GENERAL] missing public on schema public |
| Дата | |
| Msg-id | AD7252BEFBCA3846A8D34ABCDA258D080120F025C6@EXMBX05.mailcloud.dk обсуждение исходный текст |
| Ответ на | [GENERAL] missing public on schema public (Bo Thorbjørn Jensen <bo@budget123.dk>) |
| Ответы |
Re: [GENERAL] missing public on schema public
|
| Список | pgsql-general |
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
В списке pgsql-general по дате отправления: