Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary
Date: 2017-06-13 19:10:16
Message-ID: 13483.1497381016@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-06-13 19:32:03 Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary
Previous Message Bruce Momjian 2017-06-13 18:57:12 Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary