From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow ALTER TABLE .. SET NOT NULL to skip provably unnecessary s
Date: Wed, 13 Mar 2019 12:57:34 +0000
Message-ID: <E1h43Ru-0005An-1w@gemulon.postgresql.org> (raw)
Allow ALTER TABLE .. SET NOT NULL to skip provably unnecessary scans.
If existing CHECK or NOT NULL constraints preclude the presence
of nulls, we need not look to see whether any are present.
Sergei Kornilov, reviewed by Stephen Frost, Ildar Musin, David Rowley,
and by me.
Discussion: http://postgr.es/m/81911511895540@web58j.yandex.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bbb96c3704c041d139181c6601e5bc770e045d26
Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml | 13 +++-
src/backend/commands/tablecmds.c | 111 ++++++++++++++++++++++++------
src/test/regress/expected/alter_table.out | 54 +++++++++++++++
src/test/regress/sql/alter_table.sql | 40 +++++++++++
4 files changed, 195 insertions(+), 23 deletions(-)
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: rhaas@postgresql.org
Subject: Re: pgsql: Allow ALTER TABLE .. SET NOT NULL to skip provably unnecessary s
In-Reply-To: <E1h43Ru-0005An-1w@gemulon.postgresql.org>
References: <E1h43Ru-0005An-1w@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