pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: In initdb, defend against assignment of NULL values to not-null
Date: Tue, 13 Jun 2017 14:54:52 +0000
Message-ID: <E1dKnDY-0000FV-TM@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

In initdb, defend against assignment of NULL values to not-null columns.

Previously, you could write _null_ in a BKI DATA line for a column that's
supposed to be NOT NULL and initdb would let it pass, probably breaking
subsequent accesses to the row.  No doubt the original coding overlooked
this simple sanity check because in the beginning we didn't have any way
to mark catalog columns NOT NULL at initdb time.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b74701043e396a93f1f18098044741daaf75f761

Modified Files
--------------
src/backend/bootstrap/bootstrap.c | 5 +++++
1 file changed, 5 insertions(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1dKnDY-0000FV-TM@gemulon.postgresql.org>
Permalink:  ../E1dKnDY-0000FV-TM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dKnDY-0000FV-TM@gemulon.postgresql.org

 · 

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: In initdb, defend against assignment of NULL values to not-null
  In-Reply-To: <E1dKnDY-0000FV-TM@gemulon.postgresql.org>
  References: <E1dKnDY-0000FV-TM@gemulon.postgresql.org>

* 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