Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzSrT-0000zB-31 for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jul 2013 14:37:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UzSrR-0001Wp-Kz for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jul 2013 14:37:45 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzSrP-0001Wg-Ke for pgsql-bugs@postgresql.org; Wed, 17 Jul 2013 14:37:43 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzSrI-0003R5-6o for pgsql-bugs@postgresql.org; Wed, 17 Jul 2013 14:37:43 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzSrH-00084w-0U for pgsql-bugs@postgresql.org; Wed, 17 Jul 2013 14:37:36 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1UzSrB-0006E6-M4 for pgsql-bugs@postgresql.org; Wed, 17 Jul 2013 14:37:29 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8307: can reproduce: pg_dump: schema with OID xxxxxx does not exist To: pgsql-bugs@postgresql.org From: michael.enke@wincor-nixdorf.com Message-Id: Date: Wed, 17 Jul 2013 14:37:29 +0000 X-Pg-Spam-Score: 0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8307 Logged by: Michael Enke Email address: michael.enke@wincor-nixdorf.com PostgreSQL version: 9.1.8 Operating system: Linux/CentOS 6.2 Description: Hi, after hitting the above error and found that this is a long lasting one which nobody knows how to reproduce, I found a way to reproduce it: In one session create tables in a schema, in another session drop that schema. Here comes my test script: #!/bin/sh DB=testdb # change if you need NUM=2000 # adjust so that creation takes enough time to issue drop schema CREATE=/tmp/$DB.sql START=/tmp/testdb.start END=/tmp/testdb.end LANG=C rm -f $START $END >$CREATE for I in $(seq $NUM); do echo "create table t$I(at text, bt text, ct text, dt text);" >> $CREATE echo "create table tt$I as select g1.*, t$I.* from g1, t$I where 1=2;" >> $CREATE echo "drop table t$I;" >> $CREATE done ( psql -U postgres -d template1 < testdb.dump )& while [ ! -f $START ]; do usleep 100000; done sleep 1 psql -U postgres -d $DB -c "drop schema testschema cascade" 2>&1 | grep "^NOTICE" if [ -f $END ]; then echo "too late" fi wait rm -f $START $END # end script There are 3 possible errors reported (I executed 10x): 1: Deadlock detected: 1x 2: Could not open relation for Create: 4x 3: cache lookup failed: 5x In case of 2 or 3 pg_dump reports above error. If I modify the creation to only one line: echo "create table tt$I as select g1.* from g1 where 1=2;" >> $CREATE then in 100% I get the case number 2. Hope it helps tracking down the reason. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs