Re: DB Cluster hanging

From: "Nigel Bishop" <Nigel(dot)Bishop(at)ioko(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: DB Cluster hanging
Date: 2005-10-13 16:48:39
Message-ID: 72558D9A7573814BB4082A28843E03D401DA5548@intyodc01.uk.ioko365.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hi

Hmm... a possible bug eh! I'll make sure that the log destination
doesn't fill again

This is what I have in the postgresql.conf file:

log_destination = 'stderr'
redirect_stderr = true
log_directory = '/opt/postgres/admin/log'
log_filename = 'PG-%Y-%m-%d_%H%M%S.log'

Thanks,
Nigel

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Tom Lane
Sent: 13 October 2005 17:12
To: Nigel Bishop
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] DB Cluster hanging

Nigel Bishop <nigel(dot)bishop(at)gmail(dot)com> writes:
> Last night at 3am our Postgresql DB cluster hung. At the time data
> was being loaded. The parameter log_statement_stats in the
> postgresql.conf file was set to true. This was churning out data into
> the logfile which was switching every 10Mb. Eventually the partition
> where the logfiles are written to filled up - fair enough - this had
> been going on since about 5.30pm the previous evening and the logfiles
> were being generated at the rate of 4/5 a minute. The partition was
> cleared of old logs and I expected the DB to spring in to life, but no
> it just sat there. I could not connect with psql or pg_ctl to
> shutdown the cluster.

How was the logging being done exactly? syslog? redirect_stderr?
If redirect_stderr, this could well be a PG bug --- I kinda doubt
anyone has tested that scenario.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes.

Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation.

ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-10-13 17:18:23 Re: DB Cluster hanging
Previous Message Tom Lane 2005-10-13 16:31:17 Re: Urgent!