Re: [GENERAL] Unable to upload backups
От | JP Jacoupy |
---|---|
Тема | Re: [GENERAL] Unable to upload backups |
Дата | |
Msg-id | EGFc5bQPHRqRZmG91PDpvJQ60bMk_HdKw4lq5YL40TpLwJn6kQB1eB2x-0ibdx01IXi3TM8BQ3D0w86u5JPaN8nyZbr5ULZV6J7P3gI1A10=@protonmail.com обсуждение исходный текст |
Ответ на | [GENERAL] Unable to upload backups (Ron Ben <ronb910@walla.co.il>) |
Список | pgsql-general |
Seems to me your role "ronb" doesn't have the rights to create schema on your database.
Please refer to the GRANT command in the documentation.
https://www.postgresql.org/docs/9.0/static/sql-grant.html
Sent from ProtonMail, encrypted email based in Switzerland.
-------- Original Message --------Subject: [GENERAL] Unable to upload backupsLocal Time: 19 avril 2017 12:56 PMUTC Time: 19 avril 2017 10:56From: ronb910@walla.co.ilTo: pgsql-general@postgresql.orgHi,I'm using PostgreSQL 9.3.2I'm running the command:psql -h testserver -U ronb -f backup.sql -q -d foldertest 2>error.txt >output.txt
This should generate my database in foldertest
However this doesn't work. It's unable to create schemas
in the error.txt i see "permission denied for database foldertest".
I know this is not an access permission issue because there is a public schema which is buildin and it does create the tables/data in there.
It just cant create new schemas.
The intresting thing is that if I do:
psql -h testserver -U postgres -f backup.sql -q -d foldertest 2>error.txt >output.txt
Everything works. It create all schemas and generate the database correctly.
I don't see any diffrent in the hba.conf between postgres and ronb users.
What can be the problem?
В списке pgsql-general по дате отправления: