Re: pg_log directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "slamp slamp" <slackamp(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_log directory
Date: 2008-08-21 01:38:01
Message-ID: 10859.1219282681@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"slamp slamp" <slackamp(at)gmail(dot)com> writes:
> I am running postgresql-8.2.4 on rhel5. Do I need the files in pg_log?
> When I look at one of the files, it shows INSERT, UPDATE and SELECT
> statements. Reason I asked is because the folder is about 40GB. It is
> half the size of my /var/lib/pgsql directory.

That's just the server message log. While you could blow away the files
without any ill effect, soon enough you'd have another 40GB. You need
to either dial down the verbosity of your what-to-log settings, or
modify the where-to-log settings to recycle log files more frequently,
or both. In particular it sounds like you have set log_statement = all
without, perhaps, understanding the consequences. Read the fine manual
here:
http://www.postgresql.org/docs/8.2/static/runtime-config-logging.html

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Kovacs 2008-08-21 07:08:33 Re: Readline support in psql -- worked earlier for me
Previous Message slamp slamp 2008-08-21 00:08:11 Re: pg_log directory