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@lists.postgresql.org
Subject: pgsql: Teach nulltestsel() that system columns are never NULL.
Date: Fri, 25 Jan 2019 16:44:31 +0000
Message-ID: <E1gn4al-0001Rp-DR@gemulon.postgresql.org> (raw)

Teach nulltestsel() that system columns are never NULL.

While it's perhaps unlikely that users would write an explicit test
like "ctid IS NULL", this function is also used in range estimation,
and an incorrect answer can throw off the results for tight ranges.
Anyway it's not much code so we might as well do it.

Edmund Horner

Discussion: https://postgr.es/m/CAMyN-kCa3BFUFrCTtQeprxTU1anCd3Pua7zXstGCKq4pXgjukw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 9 +++++++++
1 file changed, 9 insertions(+)



Message-ID: <E1gn4al-0001Rp-DR@gemulon.postgresql.org>
Permalink:  ../E1gn4al-0001Rp-DR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gn4al-0001Rp-DR@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: Teach nulltestsel() that system columns are never NULL.
  In-Reply-To: <E1gn4al-0001Rp-DR@gemulon.postgresql.org>
  References: <E1gn4al-0001Rp-DR@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