From: | "Shoaib Mir" <shoaibmir(at)gmail(dot)com> |
---|---|
To: | "Postgres novice mailing list" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: createdb |
Date: | 2006-07-26 07:52:14 |
Message-ID: | bf54be870607260052me9504e1w2ce69179937309b7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Set the envoirnment variables like PGHOST, PGPORT, PGUSER, etc and for the
password info you can use either PGPASSFILE or PGPASSWORD (not a secure way
to do, PGPASSFILE is a preffered approach). After you have all these
variables set, you then do not have to supply all data and just call the
createdb and pass it the database name that you want to create.
Help on these envoirnment variables can be found at -->
http://www.postgresql.org/docs/8.1/interactive/libpq-envars.html
Thanks,
--
Shoaib Mir
EnterpriseDB ( www.enterprisedb.com)
On 7/26/06, Alex du Plessis <alexdup01(at)telkomsa(dot)net> wrote:
>
> Hello List,
>
> Is there an automated way to use createdb i.e. supplying all input data
> programatically (including user password)?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
From | Date | Subject | |
---|---|---|---|
Next Message | roy simkes | 2006-07-26 08:47:10 | Limiting character count |
Previous Message | Alex du Plessis | 2006-07-26 05:43:09 | createdb |