Re: Hashed SAOP on composite type with non-hashable column errors at runtime
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrei Lepikhov <lepihov@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org, Peter Eisentraut <peter@eisentraut.org>
Date: 2026-06-08T16:00:20Z
Lists: pgsql-bugs
Andrei Lepikhov <lepihov@gmail.com> writes: > Now, hash_ok_operator and op_hashjoinable handle all four container-type > equality operators. Side way is a C extension that lets you create a custom type > that groups other types marked as HASHES. Yeah, it's interesting to speculate about what we'd have to do to allow extensions to invent new kinds of container types. Right now, the knowledge of what kinds of containers there are is wired into a bunch of places. This fix isn't adding any new places, just fixing some places whose knowledge was incomplete. So I'm content with this for today. > Fixes in the lookup_type_cache related to the multirange type are also correct > for me. As well as pg_operator.dat changes. Thanks for reviewing; I pushed v1-0001 after a bit more comment-smithing. >> I'm also unexcited about your 0002 and 0003. > I understand about 0003, but what is the problem with 0002? Let me rephrase that: 0002 is a new feature and hence out of scope at this point in the development cycle. If you want to start a new thread proposing that for v20, go right ahead. regards, tom lane
Commits
-
Fix missed checks for hashability of container-type equality.
- caebac5f16f9 15 (unreleased) landed
- 64778fac724a 14 (unreleased) landed
- cf2bfe07364f 16 (unreleased) landed
- 19152e3c29ab 17 (unreleased) landed
- 11aed8d19cd7 18 (unreleased) landed
- 06e94eccfd91 19 (unreleased) landed