Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKrD8-0002Jx-P3 for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 19:10:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKrD7-0001af-Jq for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 19:10:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKrCs-0001BG-St for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 19:10:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKrCq-00021i-OJ for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 19:10:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5DJAGST013484; Tue, 13 Jun 2017 15:10:16 -0400 From: Tom Lane To: Bruce Momjian cc: Andres Freund , pgsql-committers@postgresql.org Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary In-reply-to: <20170613185712.GP13873@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> Comments: In-reply-to Bruce Momjian message dated "Tue, 13 Jun 2017 14:57:12 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13482.1497381016.1@sss.pgh.pa.us> Date: Tue, 13 Jun 2017 15:10:16 -0400 Message-ID: <13483.1497381016@sss.pgh.pa.us> 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 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. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers