Re: How To Install Extension Via Script File? - Mailing list pgsql-general

From Don Parris
Subject Re: How To Install Extension Via Script File?
Date
Msg-id CAJ-7yo=dGBDxMSvXFe763wamXtrMdDNWg7e-0V4Kmizo6XEEfQ@mail.gmail.com
Whole thread Raw
In response to Re: How To Install Extension Via Script File?  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Thu, Aug 8, 2013 at 6:30 PM, John R Pierce <pierce@hogranch.com> wrote:
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.

Oops!  That *could* create havoc, couldn't it?    Still, should be easy enough to rectify.

pgsql-general by date:

Previous
From: Don Parris
Date:
Subject: Re: How To Install Extension Via Script File?
Next
From: Oliver Elphick
Date:
Subject: Re: Postgres won't start