Re: Install from Source On Windows - University of Sydney Research

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Install from Source On Windows - University of Sydney Research
Date: 2009-08-24 07:04:01
Message-ID: h6te11$fs6$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

Craig Ringer, 24.08.2009 08:51:
> You'll probably want to initdb, edit the postgresql.conf created by
> initdb as desired, then start the postmaster manually using pg_ctl
> (making sure to point pg_ctl at the data directory you created). It's
> not hard.

Yep, I have done that as well (to quickly set up development databases). The command would be:

pg_ctl -s -D "\Path\To\Datadir" start

> If you want to automate it, just write a batch file. Remember to use
> ".cmd" not ".bat" so you run under the win32 cmd.exe script processor
> not the ancient dos emulation monster command.com .

I don't think there is any difference between .cmd and .bat in any of the NT based Windows versions.

At least on my WinXP (and earlier with W2K) double-clicking a .bat file always starts cmd.exe *not* command.com

Regards
Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Denis BUCHER 2009-08-24 08:18:39 Re: Strange "missing tables" problem
Previous Message Scott Marlowe 2009-08-24 06:56:25 Re: How to simulate crashes of PostgreSQL?

Browse pgsql-novice by date

  From Date Subject
Next Message Jignesh Shah 2009-08-24 12:31:19 compile and install trigger
Previous Message Kushal Vaghani 2009-08-24 06:54:19 Re: Install from Source On Windows - University of Sydney Research