Unable to upload backups

From: Ron Ben <ronb910(at)walla(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Unable to upload backups
Date: 2017-04-19 10:56:39
Message-ID: ~00258F742674A3801001F4C@walla.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<div dir='rtl'><div>Hi,</div>
<div>I'm using PostgreSQL 9.3.2</div>
<div>I'm running the command:</div>
<div>&nbsp;</div>
<div>
<p>psql -h testserver -U ronb -f backup.sql&nbsp; -q -d foldertest&nbsp; 2&gt;error.txt &gt;output.txt</p>
<p>This should generate my database in foldertest</p>
<p>However this doesn't work. It's unable to create schemas</p>
<p>in the error.txt i see "permission denied for database foldertest".</p>
<p>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.</p>
<p>It just cant create new schemas.</p>
<p>&nbsp;</p>
<p>The intresting thing is that if I do:</p>
<p>psql -h testserver -U postgres -f backup.sql&nbsp; -q -d foldertest&nbsp; 2&gt;error.txt &gt;output.txt</p>
<p>&nbsp;</p>
<p>Everything works. It create all schemas and generate the database correctly.</p>
<p>I don't see any diffrent in the hba.conf between postgres and ronb users.</p>
<p>What can be the problem?</p>
</div></div>

Attachment Content-Type Size
unknown_filename text/html 1009 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Samuel Williams 2017-04-19 10:58:53 Re: Large data and slow queries
Previous Message Alban Hertroys 2017-04-19 10:50:10 Re: Large data and slow queries