[COMMITTERS] pgsql: Further patch rangetypes_selfuncs.c's statistics slotmanagement - Mailing list pgsql-committers

From Tom Lane
Subject [COMMITTERS] pgsql: Further patch rangetypes_selfuncs.c's statistics slotmanagement
Date
Msg-id E1d7nwO-0001tl-4u@gemulon.postgresql.org
Whole thread Raw
List pgsql-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_4_STABLE

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

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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: [COMMITTERS] pgsql: Check connection info string in ALTER SUBSCRIPTION
Next
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Stamp 9.6.3.