Re: OpenBSD startup - logfile? - Mailing list pgsql-general

From Tom Lane
Subject Re: OpenBSD startup - logfile?
Date
Msg-id 1172.971797794@sss.pgh.pa.us
Whole thread Raw
In response to OpenBSD startup - logfile?  (Frank Bax <fbax@execulink.com>)
Responses Re: OpenBSD startup - logfile?  (Frank Bax <fbax@execulink.com>)
OpenBSD startup - no logfile?  (Frank Bax <fbax@execulink.com>)
List pgsql-general
Frank Bax <fbax@execulink.com> writes:
> I've got the following line in /etc/rc.local on my OpenBSD 2.6 system:
> /usr/local/bin/pgwrap -o /var/pgsql/log postmaster -i -S -o -F >>
> /var/pgsql/postmaster.log

> Postgres starts ok, and /var/pgsql/postmaster.log gets created, but it
> stays at size=0.

Remove -S switch.

Might be a good idea to redirect postmaster's stderr into the logfile,
as well as stdout.

            regards, tom lane

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Compiling JDBC Driver
Next
From: "Mitch Vincent"
Date:
Subject: Re: Re: C function returning rows, was Boolean text, with phrase ranking, search under Postgres