Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKrXt-0003Lq-F3 for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 19:32:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKrXt-0001mE-1o for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 19:32:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKrXs-0001hP-2K for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 19:32:08 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dKrXo-0002En-Vn for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 19:32:07 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dKrXn-0002e1-8T; Tue, 13 Jun 2017 15:32:03 -0400 Date: Tue, 13 Jun 2017 15:32:03 -0400 From: Bruce Momjian To: Tom Lane Cc: Andres Freund , pgsql-committers@postgresql.org Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary Message-ID: <20170613193203.GR13873@momjian.us> References: <20170613172909.GJ13873@momjian.us> <8723.1497375574@sss.pgh.pa.us> <20170613174512.GL13873@momjian.us> <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de> <20170613185712.GP13873@momjian.us> <13483.1497381016@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13483.1497381016@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Tue, Jun 13, 2017 at 03:10:16PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > On Tue, Jun 13, 2017 at 11:52:04AM -0700, Andres Freund wrote: > >> I'm not sure what you're actually concerned about here? > > > I am concerned a non-assert build will not error out, but if no one else > > is concerned about that, I am fine. > > I think in a production situation, we actually don't want it to error > out. The odds are fairly good that the run would complete successfully > (ie, the potential OID collision never actually materializes). So all > we're doing is converting a possible failure into an unavoidable one. > > Where we want to hear about the problem is in development. So really > an Assert is the right thing. OK, but my point is that all the other places, which seems similar, error out in production. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers