pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
logfile problem?
2+ messages / 2 participants
[nested] [flat]

* logfile problem?
@ 2003-08-28 01:34 tw_vincent <tw_vincent@yahoo.com.tw>
  2003-08-30 04:56 ` Re: logfile problem? Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: tw_vincent @ 2003-08-28 01:34 UTC (permalink / raw)
  To: pgsql-admin

Dear All:

        I start postgresql with "/app/pgsql/bin/pg_ctl start -l /app/pgsql/logfile -D /app/pgsql/data",
when I use "cat /dev/null > /app/pgsql/logile" to clear logfile, I can't clear logfile. How can I
clear the logfile, thank you!

vincent

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: logfile problem?
  2003-08-28 01:34 logfile problem? tw_vincent <tw_vincent@yahoo.com.tw>
@ 2003-08-30 04:56 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2003-08-30 04:56 UTC (permalink / raw)
  To: tw_vincent <tw_vincent@yahoo.com.tw>; +Cc: pgsql-admin

tw_vincent wrote:
> Dear All:
> 
>    I start postgresql with "/app/pgsql/bin/pg_ctl start -l
>    /app/pgsql/logfile -D /app/pgsql/data", when I use "cat
> /dev/null > /app/pgsql/logile" to clear logfile, I can't clear
> logfile. How can I clear the logfile, thank you!

The problem is that the log file is still being written to by the
postmaster. You can pipe into the rotatelogs script that is part of
Apache, or use syslog.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-08-30 04:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-28 01:34 logfile problem? tw_vincent <tw_vincent@yahoo.com.tw>
2003-08-30 04:56 ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox