Re: postmaster logfile

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: postmaster logfile
Date: 2007-12-03 21:25:46
Message-ID: D7FF158337303A419CF4A183F48302D6036CAC7C@hdsmsx411.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Well, I can start the server with....

postmaster -D /myplace/db

... and then...
^z
bg

... to get to the prompt. But each/every time a message from the
postmaster gets logged, it goes to stdout of the current window. I want
it to go to a logfile. Attempts to redirect with "&" all seem to fail.
"postmaster -d myplace/db -l logfile start" (as was in the message right
after the initial db create) doesn't seem to work.

I'll request v8.2.5. Thanks for the advise.

-dave

-----Original Message-----
From: Scott Marlowe [mailto:scott(dot)marlowe(at)gmail(dot)com]
Sent: Monday, December 03, 2007 4:13 PM
To: Gauthier, Dave
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] postmaster logfile

On Dec 3, 2007 2:35 PM, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:
>
> What's a good way to start the postmaster, send the log info to a
logfile
> somewhere, and return the linux prompt?

Use whatever startup script comes with the pacakge for your OS. I.e.
in redhat or suse you should have a postgresql script that lives in
/etc/init.d/ that gets symlinked to the appropriate /etc/rc.d/rcx.d
directory.

> v8.2.0 on suse64

You should really be running at least 8.2.4, preferable 8.2.5. 8.2.0
has some nasty bugs.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-12-03 21:37:37 Moving pgstat.stat and pgstat.tmp
Previous Message Ed Burgstaler 2007-12-03 21:20:45 Older version of PGSQL help