Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKniM-0007w6-Uj for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 15:26:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKniM-00025d-HB for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jun 2017 15:26:42 +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 1dKniL-0001x5-3f for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 15:26:41 +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 1dKniI-00066v-Iw for pgsql-committers@postgresql.org; Tue, 13 Jun 2017 15:26:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D91BE20AAB; Tue, 13 Jun 2017 11:26:37 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 13 Jun 2017 11:26:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=Q+6MI/EaUdR9T8Kvy/HlDFDXPxxbc86bF076VrmbtUM=; b=qStkkxd4 Y9PrMy+8GsMthk1CV0isDBxGxiQkQN/1LqT/KT53q4QhQ1UUGrW7cbTSiRFeCLPK r+eaGXC12NlR9zLvImyveRluQr4A38dJvw4/91TIedeAepr2EK7D8buUujZf0ZIG CQFIEFC6p79GsnPT6mFMYhf1IA/lbccpeJvUIFBXzWa8P1fddXpeKfuUU7Ueu1Dt qYIQNTh/Q/ZVhnka7cnPPaSAUYsS90SKtDR00MA6cSl6m/AZKQMTQOkkrOPuHM6K pt28yPrTLHiN5WnNT4Ozy/YfqebukF/YwkwTf82Gl0QYPdHKBQC0bJfxmqgizDoa oEYsnSMXaNjKNg== X-ME-Sender: X-Sasl-enc: yy2bg1BpsSuqg6REu8xknCt1dbFde7HM/ewgpd6dEsKP 1497367597 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 992C52486E; Tue, 13 Jun 2017 11:26:37 -0400 (EDT) Subject: Re: pgsql: Fix collprovider of predefined collations To: Tom Lane References: <365.1497362059@sss.pgh.pa.us> <17672.1497365840@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com> Date: Tue, 13 Jun 2017 11:26:36 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <17672.1497365840@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 6/13/17 10:57, Tom Lane wrote: > 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. yup :( >> 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. great -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers