Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCXzc-0005fW-NH for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:48:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCXzc-0000c7-78 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:48:48 +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 1XCXzb-0000bz-FR for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:48:47 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XCXzY-0000yK-B3 for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:48:45 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XCXzX-0004rk-9D; Wed, 30 Jul 2014 13:48:43 -0400 Date: Wed, 30 Jul 2014 13:48:43 -0400 From: Bruce Momjian To: Aryeh Leib Taurog Cc: pgsql-bugs@postgresql.org Subject: Re: Bug fix confirmation: could not open relation with OID nnn Message-ID: <20140730174843.GJ2791@momjian.us> References: <20140710112157.GA6057@tiny> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140710112157.GA6057@tiny> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) 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 On Thu, Jul 10, 2014 at 02:21:57PM +0300, Aryeh Leib Taurog wrote: > 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? Yes, I think so. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs