Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CC44D47656E for ; Mon, 14 Oct 2002 11:12:35 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 55CA0476556 for ; Mon, 14 Oct 2002 11:12:35 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id B015E381652; Mon, 14 Oct 2002 11:12:38 -0400 (EDT) From: Jeff Boes X-Newsgroups: comp.databases.postgresql.admin Subject: Errors while vacuuming large tables Date: Mon, 14 Oct 2002 11:13:46 -0400 Organization: Nexcerpt, Inc. Lines: 41 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-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/86 X-Sequence-Number: 5944 We expire rows by a datestamp from a few fairly large tables in our schema (running 7.2.1). Table A: 140 Krows, 600 MB Table B: 100 Krows, 2.7 GB Table C: 140 Krows, 2.7 GB Table D: 3.2 Mrows, 500 MB so that something like 15-20% of each table is deleted at a crack (done on a weekend, of course). After the deletions, a VACUUM FULL is performed on each of these tables. Recently, we get this message quite often on table A: ERROR: Parent tuple was not found which I'm led to believe by things I've read here and elsewhere is caused by a bug in PostgreSQL having to do with rows marked as read-locked or something. I hope this gets repaired soon, because it's annoying not to be able to recover the space automatically on this table. But this weekend, we got a different set of errors: ERROR: cannot open segment 1 of relation table_D (target block 2337538109): No such file or directory and for table B: NOTICE: Child itemid in update-chain marked as unused - can't continue repair_frag ERROR: cannot open segment 3 of relation pg_toast_51207070 (target block 2336096317): No such file or directory What's the remedy to keep this from happening? We have an Apache mod_perl installation running queries against these tables; could an open read-only transaction cause problems like this? -- Jeff Boes vox 616.226.9550 ext 24 Database Engineer fax 616.349.9076 Nexcerpt, Inc. http://www.nexcerpt.com ...Nexcerpt... Extend your Expertise