Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKr0A-0001eH-CU for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:57:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKr09-0006Ay-SD for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:57:17 +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 1dKr09-00069i-IA for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 18:57:17 +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 1dKr06-0001aT-Fe for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 18:57:17 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dKr04-0007Qz-HY; Tue, 13 Jun 2017 14:57:12 -0400 Date: Tue, 13 Jun 2017 14:57:12 -0400 From: Bruce Momjian To: Andres Freund Cc: Tom Lane , pgsql-committers@postgresql.org Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary Message-ID: <20170613185712.GP13873@momjian.us> References: <20170613172909.GJ13873@momjian.us> <8723.1497375574@sss.pgh.pa.us> <20170613174512.GL13873@momjian.us> <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de> 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 11:52:04AM -0700, Andres Freund wrote: > 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 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? I am concerned a non-assert build will not error out, but if no one else is concerned about that, I am fine. -- 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