pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: Pallav Kalva <pkalva@livedatagroup.com>
Cc: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres Logging doesnt work
Date: Mon, 2 Oct 2006 21:35:34 +0500
Message-ID: <bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com> (raw)
In-Reply-To: <45213CF0.90009@livedatagroup.com>
References: <45212A6B.2060503@livedatagroup.com>
	<20061002161255.GC32410@phlogiston.dyndns.org>
	<45213CF0.90009@livedatagroup.com>

I guess that might work:

1. Set the following in postgresql.conf file --> log_rotation_age = 1
2. rename the already present log file from dbserver logs folder
3. Now do --> pg_ctl reload (so that log_rotation_age change you did comes
in affect)
4. Check the log folder after a while (after 1 minutes) and it will be
having a new log file and doing all the logging there
5. After it starts the logging you can revert the change done to
rotation_age and do a reload again.

Thanks,
---
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)



On 10/2/06, Pallav Kalva <pkalva@livedatagroup.com> wrote:
>
> Hi Andrew,
>
>      Thanks! for the reply, it is a small file. the file size on it is
> 735K that's pretty small. Not sure why it stopped writing to the log
> file, is there any way to start logging without starting postgres ?
>
> Pallav.
>
> Andrew Sullivan wrote:
> > On Mon, Oct 02, 2006 at 11:04:11AM -0400, Pallav Kalva wrote:
> >
> >> Hi ,
> >>
> >>     My production database stopped writting to the postgres log files
> >> all of a sudden, does anybody know why ?
> >>
> >
> > How big is the file?
> >
> >
> >>  log_rotation_age               | 10080
> >>  log_rotation_size              | 0
> >>
> >
> > You've set this up to rotate once every 10,080 minutes, no matter
> > what.  If you've run into a file size limit, then you'll be out of
> > luck until the next file is opened, which should be on the same day
> > of the week the postmaster was last started.  Just a guess.
> >
> > A
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>

view thread (5+ messages)  latest in thread

Message-ID: <bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com>
Permalink:  ../bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: shoaibmir@gmail.com, pkalva@livedatagroup.com, ajs@crankycanuck.ca
  Subject: Re: Postgres Logging doesnt work
  In-Reply-To: <bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com>
  References: <45212A6B.2060503@livedatagroup.com> <20061002161255.GC32410@phlogiston.dyndns.org> <45213CF0.90009@livedatagroup.com> <bf54be870610020935k229c0ca3l43b516f5a982612@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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