Thread: Create Database automatacally after silent installation of postgresql. ?
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 ? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Create-Database-automatacally-after-silent-installation-of-postgresql-tp4342997p4342997.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
Re: Create Database automatacally after silent installation of postgresql. ?
From
Thomas Kellerer
Date:
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.
Re: Re: Create Database automatacally after silent installation of postgresql. ?
From
Raghavendra
Date:
On Wed, Apr 27, 2011 at 6:38 PM, Thomas Kellerer <spam_eater@gmx.net> wrote:
hirenlad, 27.04.2011 09:47:Simply run initdb after your installation is finished.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 ?
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