Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id CDA7A476564 for ; Mon, 17 Jun 2002 10:50:16 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id AFDDE476304 for ; Mon, 17 Jun 2002 10:02:58 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 981EB3819A7; Mon, 17 Jun 2002 10:02:13 -0400 (EDT) From: Jeff Boes X-Newsgroups: comp.databases.postgresql.admin Subject: Postgres and mod_perl: table locked during vacuum? Date: Mon, 17 Jun 2002 10:02:58 -0400 Organization: Nexcerpt, Inc. Lines: 17 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: news@hub.org User-Agent: Pan/0.11.3 (Unix) X-Comment-To: ALL To: pgsql-admin@postgresql.org X-Archive-Number: 200206/110 X-Sequence-Number: 4545 We are experiencing a fairly predictable lock-up in the overnight VACUUM ANALYZE maintenance script. The VACUUM gets to the pg_class table and then stops, obviously waiting for something else to give up control of the table. The VACUUM script resumes precisely when the web server is bounced. The web server is using mod_perl, and mod_perl uses DBI code (in a locally developed module that does establish a connection at *compile* time in order to verify existence of tables used in the code). What puzzles me is that the start-up code does not do any UPDATEs or DELETEs, so although some of the connections do not have AutoCommit enabled, I don't understand why pg_class would seem to be locked in a transaction. -- Jeff Boes vox 616.226.9550 ext 24 Database Engineer fax 616.349.9076 Nexcerpt, Inc. http://www.nexcerpt.com ...Nexcerpt... Extend your Expertise