Re: How To Install Extension Via Script File?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How To Install Extension Via Script File?
Date: 2013-08-08 22:30:40
Message-ID: 52041C10.6080106@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/8/2013 2:13 PM, Don Parris wrote:
> I thought I could add the commands and run the create script by doing:
> sudo -u postgres psql -U user -W -d mydb
> --file=/home/user/dev/mydb_create.sql
>
> I thought that, running my script as the superuser, it would have the
> privileges necessary to install the extension, but I still got a
> "permission denied" error.

can the postgres user access /home/user/dev ?

thats aside from the rest of potentially wrong stuff the other guys
mentioned.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Don Parris 2013-08-08 22:50:46 Re: How To Install Extension Via Script File?
Previous Message Adrian Klaver 2013-08-08 22:29:21 Re: Postgres won't start