Skip site navigation (1) Skip section navigation (2)

Re: PG Logging is Slow

From: Michael Adler <adler(at)pobox(dot)com>
To: Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: PG Logging is Slow
Date: 2004-12-20 14:07:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Mon, Dec 20, 2004 at 03:17:11PM +1100, Theo Galanakis wrote:
> Under postgres 7.3 logging is incredibly slow!
> I have applied the following settings:
> syslog = 2
> syslog_facility = 'LOCAL0'
> syslog_ident = 'postgres'
>  log_connections =  true 
> log_duration =  true 
> log_pid =  true 
> log_statement =  true 
> log_timestamp =  true 
> This severely impacted the performance of our production system, a search
> page which took 1-3 seconds now takes over 30, is this normal?
> I need to get some performance indicators from our production db, however I
> cant turn on logging with such performance degradation.

I've experienced this problem many times due to hanging dns
lookups. /etc/resolv.conf may point to a nonexistent
nameserver. Comment it out and restart syslogd. Or use a syslog
implementation that allows you to disable dns lookups. Or just give
the nameserver a kick.

 -Mike Adler

In response to

pgsql-performance by date

Next:From: sarlav kumarDate: 2004-12-20 14:40:34
Subject: Postgres version change - pg_dump
Previous:From: Grega BremecDate: 2004-12-20 04:48:35
Subject: Re: PG Logging is Slow

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group