Обсуждение: Starting postmaster in logging mode

Поиск
Список
Период
Сортировка

Starting postmaster in logging mode

От
Walt Weaver
Дата:
Could someone give me an example of how they start up the postmaster in
logging mode?

I'm new to this postgres stuff - inherited the database with the job.
Currently the postmaster starts with 'postmaster -S -D/data/pgsql7 -i -B
128 -N64'.

I know what all the parms mean, and when I take out the -S to try to
start logging and redirect the output to a file the postmaster exits
after a matter of seconds.

Any examples would be appreciated.

--Walt Weaver
    Bozeman, Montana


Re: Starting postmaster in logging mode

От
Tom Lane
Дата:
Walt Weaver <wweaver@rightnow.com> writes:
> Could someone give me an example of how they start up the postmaster in
> logging mode?

nohup postmaster ...switches... >>/path/to/server.log 2>&1 &

where (as you knew) the switches shouldn't contain -S.

Depending on your platform, "</dev/null" might also be needed to
be completely sure the thing is disassociated from your tty and
won't get killed when the parent shell exits.

            regards, tom lane