From: | JP Jacoupy <jpjacoupy(at)protonmail(dot)com> |
---|---|
To: | Ron Ben <ronb910(at)walla(dot)co(dot)il> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Unable to upload backups |
Date: | 2017-04-19 11:55:21 |
Message-ID: | EGFc5bQPHRqRZmG91PDpvJQ60bMk_HdKw4lq5YL40TpLwJn6kQB1eB2x-0ibdx01IXi3TM8BQ3D0w86u5JPaN8nyZbr5ULZV6J7P3gI1A10=@protonmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
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](https://protonmail.ch), encrypted email based in Switzerland.
-------- Original Message --------
Subject: [GENERAL] Unable to upload backups
Local Time: 19 avril 2017 12:56 PM
UTC Time: 19 avril 2017 10:56
From: ronb910(at)walla(dot)co(dot)il
To: pgsql-general(at)postgresql(dot)org
Hi,
I'm using PostgreSQL 9.3.2
I'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?
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn Tonies (Upscene Productions) | 2017-04-19 12:17:15 | Re: Large data and slow queries |
Previous Message | vinny | 2017-04-19 11:37:33 | Re: Large data and slow queries |