pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary
Date: Tue, 13 Jun 2017 15:10:16 -0400
Message-ID: <13483.1497381016@sss.pgh.pa.us> (raw)
In-Reply-To: <20170613185712.GP13873@momjian.us>
References: <E1dKZKC-0000AG-U2@gemulon.postgresql.org>
	<20170613172909.GJ13873@momjian.us>
	<8723.1497375574@sss.pgh.pa.us>
	<20170613174512.GL13873@momjian.us>
	<20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de>
	<20170613185712.GP13873@momjian.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Bruce Momjian <bruce@momjian.us> 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



view thread (10+ messages)  latest in thread

Message-ID: <13483.1497381016@sss.pgh.pa.us>
Permalink:  ../13483.1497381016@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13483.1497381016@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, andres@anarazel.de
  Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary
  In-Reply-To: <13483.1497381016@sss.pgh.pa.us>
  References: <E1dKZKC-0000AG-U2@gemulon.postgresql.org> <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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox