From: Andres Freund <andres@anarazel.de>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 11:52:04 -0700
Message-ID: <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de> (raw)
In-Reply-To: <20170613174512.GL13873@momjian.us>
References: <E1dKZKC-0000AG-U2@gemulon.postgresql.org>
<20170613172909.GJ13873@momjian.us>
<8723.1497375574@sss.pgh.pa.us>
<20170613174512.GL13873@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2017-06-13 13:45:12 -0400, Bruce Momjian wrote:
> On Tue, Jun 13, 2017 at 01:39:34PM -0400, Tom Lane wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > Uh, is there a reason this is only an Assert(), meaning it only checks
> > > in assert builds. pg_upgrade already has a lot of checks and they are
> > > all fatal.
> >
> > Yeah, I didn't think it was worth adding overhead to production builds
> > for it.
>
> Uh, you realize there are already many pg_upgrade sanity checks in the
> backend that are not asserts, right?
And? Not that it'll make a huge difference, but GetNewOidWithIndex() is
a relatively hot-path in some workloads (e.g. with lots of toasted
data), so it actually can make a difference. And for debugging asserts
are often actually more useful, because you get a backtrace.
I'm not sure what you're actually concerned about here?
- Andres
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: andres@anarazel.de, bruce@momjian.us, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary
In-Reply-To: <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de>
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>
* 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