Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 5D9DE4766FA for ; Tue, 18 Jun 2002 09:41:49 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id F01E2476218 for ; Tue, 18 Jun 2002 09:29:15 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5IDTEb25608; Tue, 18 Jun 2002 09:29:14 -0400 (EDT) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: Postgres and mod_perl: table locked during vacuum? In-reply-to: References: Comments: In-reply-to Jeff Boes message dated "Mon, 17 Jun 2002 10:02:58 -0400" Date: Tue, 18 Jun 2002 09:29:14 -0400 Message-ID: <25605.1024406954@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/116 X-Sequence-Number: 4551 Jeff Boes writes: > 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). I suppose you're not running 7.2 ? Turn on debug_print_query and look at the log to see what queries are being issued. I'll bet lunch that the webserver code is doing something like begin; select * from pg_class where ... ; <> regards, tom lane