Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKqvE-0001Ox-9U for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:52:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKqvD-0008SS-QY for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:52:11 +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 1dKqvD-0008SF-5a for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 18:52:11 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKqv9-0001f3-9E for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 18:52:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AE78C209E0; Tue, 13 Jun 2017 14:52:05 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 13 Jun 2017 14:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=dc15HvzgixkAkaREen qLZXqGj2uMO2BUcUhpHZtSotg=; b=WupJwu1OOZYf4pVB1bwe1e3tQ+dhITSiue mkbsCwyyUKiqUPGuNUA56Nl1xOKDjYlq6diF8SM26JV7aJAsOJnY9X32N4ge+fQC Vq6A6dRbHkW9W78Z1ejUylngeApYal506MbW75UVTmQpVJDielAzqIimgOTQ7eYx 5kN2x7VGNVdd51zugeedCiy72AzWvJO2bz+D/8shxy6+T9EkmbnKYmg/gv2LPxts U0SvfgV4Y2lQALcEOuiCOUph+cUIUCpz6d+N+Eq2uXQtvOgV0C4U19hbJOV0GJbf Ti38B4iUHQP+xamnTjPKctVss8AtrR3PsqQdKK6YhlChrc/90pFA== X-ME-Sender: X-Sasl-enc: fM/JABoW8IYteevMfY9DjgY37TmZs647l0JKv8rOcL9E 1497379925 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 66930248EF; Tue, 13 Jun 2017 14:52:05 -0400 (EDT) Date: Tue, 13 Jun 2017 11:52:04 -0700 From: Andres Freund To: Bruce Momjian Cc: Tom Lane , pgsql-committers@postgresql.org Subject: Re: pgsql: Assert that we don't invent relfilenodes or type OIDs in binary Message-ID: <20170613185204.h5kpdchobg2pupp4@alap3.anarazel.de> References: <20170613172909.GJ13873@momjian.us> <8723.1497375574@sss.pgh.pa.us> <20170613174512.GL13873@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170613174512.GL13873@momjian.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 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? - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers