Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j340q-00058v-4N for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Feb 2020 20:26:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j340o-0003Fq-Me for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Feb 2020 20:26:02 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j340o-0003Fj-E4 for pgsql-hackers@lists.postgresql.org; Sat, 15 Feb 2020 20:26:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j340m-00028i-99 for pgsql-hackers@postgresql.org; Sat, 15 Feb 2020 20:26:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01FKPt4H008404; Sat, 15 Feb 2020 15:25:55 -0500 From: Tom Lane To: Alvaro Herrera cc: John Naylor , Amit Langote , Justin Pryzby , PostgreSQL-development Subject: Re: assert pg_class.relnatts is consistent In-reply-to: <618.1581706856@sss.pgh.pa.us> References: <20200214152926.GA7006@alvherre.pgsql> <618.1581706856@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 14 Feb 2020 14:00:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8402.1581798355.1@sss.pgh.pa.us> Date: Sat, 15 Feb 2020 15:25:55 -0500 Message-ID: <8403.1581798355@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > So that leads me to the attached. > ... > (I agree with Alvaro's thought of shortening AddDefaultValues, > but didn't do that here.) Pushed both of those. I also did something with the stale comment that Justin referred to in the initial message (it wasn't really good practice to try to deal with both things in one thread). I think we're done here, though maybe the difficulty of finding a clean way to get genbki.pl to do this suggests that AddDefaultValues needs to be redesigned. Not sure what that'd look like. regards, tom lane