Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKnGI-0006P2-8z for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 14:57:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKnGH-0002IU-Oj for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 14:57:41 +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 1dKnG3-0001sn-0b for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 14:57:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKnG0-0005Y1-Om for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 14:57:25 +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 v5DEvKiX017673; Tue, 13 Jun 2017 10:57:20 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix collprovider of predefined collations In-reply-to: <365.1497362059@sss.pgh.pa.us> References: <365.1497362059@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 13 Jun 2017 09:54:19 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17671.1497365840.1@sss.pgh.pa.us> Date: Tue, 13 Jun 2017 10:57:20 -0400 Message-ID: <17672.1497365840@sss.pgh.pa.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 I wrote: > Peter Eisentraut writes: >> Fix collprovider of predefined collations >> An earlier version of the patch had collprovider as an integer and thus >> set these to 0, but the correct setting is now null. > Surely this is not right. Neither collprovider nor the other fixed-length > fields following it in pg_collation are marked nullable, and most of them > are accessed as struct fields so that's not an easy thing to change. Ah, on looking closer, I see what the patch actually changes to null is collversion not collprovider. So the patch is ok, the commit message not so much. > The fact that the buildfarm didn't blow up is a bit odd. Maybe we're > missing some enforcement somewhere? As penance for the false alarm, I looked into that angle and indeed we didn't have any cross-check against storing NULL from the BKI data into a putatively not null column. We do now. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers