pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix collprovider of predefined collations
Date: Tue, 13 Jun 2017 11:26:36 -0400
Message-ID: <88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com> (raw)
In-Reply-To: <17672.1497365840@sss.pgh.pa.us>
References: <E1dKlNL-0006RD-J5@gemulon.postgresql.org>
	<365.1497362059@sss.pgh.pa.us>
	<17672.1497365840@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 6/13/17 10:57, Tom Lane wrote:
> I wrote:
>> Peter Eisentraut <peter_e@gmx.net> 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



view thread (4+ messages)

Message-ID: <88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com>
Permalink:  ../88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com/
Also on:    postgresql.org/message-id/88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix collprovider of predefined collations
  In-Reply-To: <88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com>
  References: <E1dKlNL-0006RD-J5@gemulon.postgresql.org> <365.1497362059@sss.pgh.pa.us> <17672.1497365840@sss.pgh.pa.us> <88e4920a-b95d-a458-98d8-9727825249a9@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox