Re: Scripting a new db server setup - Mailing list pgsql-general

From Doug McNaught
Subject Re: Scripting a new db server setup
Date
Msg-id 873cavaer2.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to Scripting a new db server setup  (A E <cooljoint@yahoo.com>)
Responses Re: Scripting a new db server setup  (A E <cooljoint@yahoo.com>)
List pgsql-general
A E <cooljoint@yahoo.com> writes:

>    Hi,
>
>
>
>    Was wondering if there are ways to completely script a new postgresql
>    installation. I need to be able to create the db, users, and db
>    elements from one command so that I can included it in a setup
>    routine.

Absolutely--write SQL scripts that do the work and feed them to 'psql'
in a shell script.

-Doug

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Scripting a new db server setup
Next
From: A E
Date:
Subject: Re: Scripting a new db server setup