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: Further patch rangetypes_selfuncs.c's statistics slot management
Date: Mon, 08 May 2017 19:03:28 +0000
Message-ID: <E1d7nwO-0001tj-4q@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Further patch rangetypes_selfuncs.c's statistics slot management.

Values in a STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM slot are float8,
not of the type of the column the statistics are for.

This bug is at least partly the fault of sloppy specification comments
for get_attstatsslot()/free_attstatsslot(): the type OID they want is that
of the stavalues entries, not of the underlying column.  (I double-checked
other callers and they seem to get this right.)  Adjust the comments to be
more correct.

Per buildfarm.

Security: CVE-2017-7484

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4509b4eb188beeea5c74a52f238127d323093113

Modified Files
--------------
src/backend/utils/adt/rangetypes_selfuncs.c | 14 ++++++++------
src/backend/utils/cache/lsyscache.c         | 11 ++++++-----
src/include/catalog/pg_statistic.h          |  2 +-
3 files changed, 15 insertions(+), 12 deletions(-)


-- 
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 (5+ messages)

Message-ID: <E1d7nwO-0001tj-4q@gemulon.postgresql.org>
Permalink:  ../E1d7nwO-0001tj-4q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1d7nwO-0001tj-4q@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: Further patch rangetypes_selfuncs.c's statistics slot management
  In-Reply-To: <E1d7nwO-0001tj-4q@gemulon.postgresql.org>
  References: <E1d7nwO-0001tj-4q@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