Re: Having a problem with RoR-3.1.1 and Pg-9.1 - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Having a problem with RoR-3.1.1 and Pg-9.1
Date
Msg-id 4F4BD163.30302@gmail.com
Whole thread Raw
In response to Having a problem with RoR-3.1.1 and Pg-9.1  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
Responses Re: Having a problem with RoR-3.1.1 and Pg-9.1
List pgsql-general
On 02/27/2012 08:51 AM, James B. Byrne wrote:
>
> The options seem to be run the script as the owner of the
> plpgsql EXTENSION or do not include the comment.
>
> How does one instruct pg_dump not to include the COMMENT
> for the plpgsql extension?

I am not sure pg_dump is including the COMMENT. From your previous post
the source of the COMMENT would seem to be development_structure.sql,
which I assume is coming from RoR.

>
> The case in question is the automated creation of an sql
> script to create a test database from a development
> database.  The owners of the development and test
> databases are the same but this user id is not a superuser
> and it certainly does not own the plpgsql extension.

Run the script as a superuser? If the purpose is create a database from
scratch it would seem that would have to happen via a user with
sufficient privileges on all the objects in the database.

>


--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Mike Blackwell
Date:
Subject: Re: Does the current user have UPDATE privilege on FOO?
Next
From: David Salisbury
Date:
Subject: Re: Having a problem with RoR-3.1.1 and Pg-9.1