Re: [HACKERS] Multicolumn hash indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Multicolumn hash indexes
Date
Msg-id 20188.1506467921@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] Multicolumn hash indexes  (Tomasz Ostrowski <tometzky+pg@ato.waw.pl>)
Responses Re: [HACKERS] Multicolumn hash indexes  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Tomasz Ostrowski <tometzky+pg@ato.waw.pl> writes:
> I've noticed that hash indexes can't currently (in PG10) be multicolumn. 
> Are they technically hard to implement or just nobody took such a feature?

It's not simple, particularly not if you wish that the index would support
queries specifying conditions for just a subset of the indexed columns
(an assumption that's buried pretty deeply in the planner, for one thing).
Then you couldn't compute the hash.
        regards, tom lane


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

pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [HACKERS] v10 pg_ctl compatibility
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Multicolumn hash indexes