[COMMITTERS] pgsql: Fix misimplementation of typcache logic for extended hashing. - Mailing list pgsql-committers

From Tom Lane
Subject [COMMITTERS] pgsql: Fix misimplementation of typcache logic for extended hashing.
Date
Msg-id E1e5dah-00075h-0I@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix misimplementation of typcache logic for extended hashing.

The previous coding would report that an array type supports extended
hashing if its element type supports regular hashing.  This bug is
only latent at the moment, since AFAICS there is not yet any code
that depends on checking presence of extended-hashing support to make
any decisions.  (And in any case it wouldn't matter unless the element
type has only regular hashing, which isn't true of any core data type.)
But that doesn't make it less broken.  Extend the
cache_array_element_properties infrastructure to check this properly.

Branch
------
master

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

Modified Files
--------------
src/backend/utils/cache/typcache.c | 59 +++++++++++++++++++++++---------------
1 file changed, 36 insertions(+), 23 deletions(-)


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

pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: pg_stat_statements: Add a comment about the dangers of paddingb
Next
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Fix typcache's failure to treat ranges as container types.