Re: PG connections going to 'waiting' - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: PG connections going to 'waiting'
Date
Msg-id 20090908201220.GK549@alvh.no-ip.org
Whole thread Raw
In response to Re: PG connections going to 'waiting'  (Alan McKay <alan.mckay@gmail.com>)
List pgsql-general
Alan McKay escribió:
> OK, looks like the time window is exactly when we run vacuum.   That
> has been running now for a couple of months no problem, but the last 2
> weekends we've been doing massive data loads which could be
> complicating things.
>
> Is vacuum a good candidate for what could be locking up the tables?

Vacuum full, which is what your script is using, locks tables.  But it's
not recommended.  You should be looking at an alternative vacuuming
strategy that does not involve vacuum full at all.  Perhaps autovacuum,
properly tuned, is a better solution.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Alan McKay
Date:
Subject: Re: PG connections going to 'waiting'
Next
From: miller_2555
Date:
Subject: Using symbolic links with tablespaces