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

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Install from Source On Windows - University of Sydney Research
Дата
Msg-id h6te11$fs6$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: Install from Source On Windows - University of Sydney Research  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: How to simulate crashes of PostgreSQL?
Следующее
От: Denis BUCHER
Дата:
Сообщение: Re: Strange "missing tables" problem