Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X5CQf-0005NJ-On for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Jul 2014 11:22:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X5CQe-0001z6-Fp for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Jul 2014 11:22:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X5CQc-0001yx-G5 for pgsql-bugs@postgresql.org; Thu, 10 Jul 2014 11:22:18 +0000 Received: from mxout-07.mxes.net ([216.86.168.182]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X5CQY-0004Un-EJ for pgsql-bugs@postgresql.org; Thu, 10 Jul 2014 11:22:16 +0000 Received: from localhost (unknown [79.177.103.245]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id C85FD22E25B for ; Thu, 10 Jul 2014 07:22:12 -0400 (EDT) Date: Thu, 10 Jul 2014 14:21:57 +0300 From: Aryeh Leib Taurog To: pgsql-bugs@postgresql.org Subject: Bug fix confirmation: could not open relation with OID nnn Message-ID: <20140710112157.GA6057@tiny> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -0.7 (/) 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 I'd like to do the following for large frequent updates on central table with ~1m rows: 1. Create new table like original 2. Populate new table 3. DROP original table 4. RENAME new table to original Some testing revealed that in pg 8.4 and 9.1, if another session queries the table between 3 and 4, the query fails with error 'could not open relation with OID nnn.' In pg 9.3 there's no error. This seems to be the topic of conversation here: Do I correctly infer that the change in behavior was an intentional fix and that with pg >= 9.3 I can rely on the above method working without any risk of this error in my queries? Much appreciated, Aryeh Leib Taurog -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs