Re: shutdown postmaster question

Поиск
Список
Период
Сортировка
Искать
От
George Weaver
Тема
Re: shutdown postmaster question
Дата
Msg-id
009c01c51aa9$40ee6e50$6400a8c0@Dell4500
Список
Дерево обсуждения
user defined types and strings Kjetil Haaland <kjetil.haaland@student.uib.no>
Re: user defined types and strings Michael Fuhr <mike@fuhr.org>
Re: user defined types and strings Kjetil Haaland <kjetil.haaland@student.uib.no>
shutdown postmaster question <operationsengineer1@yahoo.com>
Re: user defined types and strings Tom Lane <tgl@sss.pgh.pa.us>
I have used 2 batch files in the past.

The first was start.bat with the lines

    bash pg_ctl start -D /usr/share/postgresql/data -o -i 

    pause

stop.bat contained:

    bash pg_ctl stop -D /usr/share/postgresql/data


----- Original Message ----- 
From: 
To: "George Weaver" ; 
Sent: Thursday, February 24, 2005 12:27 PM
Subject: Re: [NOVICE] shutdown postmaster question


> 
> --- George Weaver  wrote:
> 
>> 
>> You might find starting and stopping postmaster
>> easier by using pg_ctl.  Eg 
>> in a batch file the following will stop the server:
>> 
>> bash pg_ctl stop -D /usr/share/postgresql/data
>> 
>> Regards,
>> George
> 
> i tried pg_ctl with no luck.  i started with 
> 
> pg_ctl start
> 
> but my pgdata environment variable wasn't set and i
> couldn't quickly find out how to set it via the docs.

See -D abvove

> i then tried 
> 
> pg_ctl /usr/share/postgresql/data start
> 
> and received an invalid operation mode error.
> 
> i'm not sure how pg_ctl handles the "-i" issue (tcp/ip
> connections) and whether the trailing "&" is required
> using pg_ctl.  the docs and my php/pgsql book were
> unclear after an admittedly quick review.

-o is needed to pass options directly to the postmaster e.g. -i

Regards,
Geroge

В списке pgsql-novice по дате отправления
От: Keith Worthington
Дата:
Сообщение: session_user id
От: Bruce Momjian
Дата:
FAQ