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

From Tom Lane
Subject Re: OpenBSD startup - logfile?
Date
Msg-id 1483.971801387@sss.pgh.pa.us
Whole thread Raw
In response to Re: OpenBSD startup - logfile?  (Frank Bax <fbax@execulink.com>)
Responses Re: OpenBSD startup - logfile?  (Frank Bax <fbax@execulink.com>)
List pgsql-general
Frank Bax <fbax@execulink.com> writes:
> Thanks.  When I remove -S then the command never completes?

Oh, OK.  It wasn't clear what context you were starting the postmaster
in.  Evidently it's from a script that has other things to do.  You
need to put an ampersand "&" at the end of the command line to fork off
a separate process for the postmaster.  I had mistakenly assumed your
"pgwrap" thingy was doing something like that.

> How do I redirect stderr?

Depends what shell you're using, but on sh-derived shells adding
    2>&1
after the >>file phrase will put stderr into the same file as stdout.

            regards, tom lane

pgsql-general by date:

Previous
From:
Date:
Subject: Re: (redefinition) alter table, add foreign key constraint
Next
From: Frank Bax
Date:
Subject: Re: OpenBSD startup - logfile?