Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTzNo-0007L3-IJ for pgsql-bugs@postgresql.org; Thu, 01 Nov 2012 18:20:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTzNi-00068Q-0v for pgsql-bugs@postgresql.org; Thu, 01 Nov 2012 18:20:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qA1IKdh4004226; Thu, 1 Nov 2012 14:20:39 -0400 (EDT) From: Tom Lane To: thomas.eckestad@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE In-reply-to: References: Comments: In-reply-to thomas.eckestad@gmail.com message dated "Thu, 01 Nov 2012 07:57:58 -0000" Date: Thu, 01 Nov 2012 14:20:39 -0400 Message-ID: <4225.1351794039@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/9 X-Sequence-Number: 34567 thomas.eckestad@gmail.com writes: > After a couple of days/weeks with frequent unit test activity DROP DATABASE > eventually triggers errors on the following form: > 2012-05-08 08:53:02.512 CEST> LOG: statement: DROP DATABASE IF EXISTS > "HEAD_test_migrate_group_data_10010018668" > 2012-05-08 08:53:02.512 CEST> ERROR: could not open file "global/12693": No > such file or directory > 2012-05-08 08:53:02.512 CEST> STATEMENT: DROP DATABASE IF EXISTS > "HEAD_test_migrate_group_data_10010018668" That is extremely peculiar --- AFAICS, 9.1 should never assign a relfilenode of 12693. (OIDs assigned by initdb don't get past about 11900 in that version, and OIDs assigned after normal postmaster start should always be above 16384.) Is it always exactly "global/12693" that's complained of? Could you monitor the contents of $PGDATA/global and see if the set of filenames present changes while you're running these tests? regards, tom lane