Re: Re: Create Database automatacally after silent installation of postgresql. ? - Mailing list pgsql-general

From Raghavendra
Subject Re: Re: Create Database automatacally after silent installation of postgresql. ?
Date
Msg-id BANLkTikhv-rZGnwfZ1bhCKDiv-bbNcV3pg@mail.gmail.com
Whole thread Raw
In response to Re: Create Database automatacally after silent installation of postgresql. ?  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
On Wed, Apr 27, 2011 at 6:38 PM, Thomas Kellerer <spam_eater@gmx.net> wrote:
hirenlad, 27.04.2011 09:47:

Hiii
     Hey i m using postgresql 8.4. now i m install postgresql8.4 silently
and it work properly, no issue during this process. Now problem is i want to
create one database automatically after install postgresql 8.4.

  Can u plz inform me is it possible ? and if it is possible then how ?


Simply run initdb after your installation is finished.


If you say, new database in the same cluster(/data directory running on 5432 port) then by default there will be three databases(postgres,template0,template1), for new you can use CREATE DATABASE command.

If you want another cluster, you can use INITDB as said by Thomas

Best Regards,
Raghavendra
EnterpriseDB Corporation
The Enterprise Postgres Company
 



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Best way to construct PostgreSQL ArrayType (_int4) from C int array
Next
From: Tom Lane
Date:
Subject: Re: optimizing a cpu-heavy query