Peter Eisentraut <peter.eisentr...@2ndquadrant.com> writes: > Here is an updated patch with the type cache integration added.
> To your point, this now checks each fields hashability before > considering a row type as hashable. It can still have run-time errors > for untyped record datums, but that's not something we can do anything > about. This looks good code-wise. A couple small niggles on the tests: * The new test in with.sql claims to be testing row hashing, but it's not very apparent that any such thing actually happens. Maybe EXPLAIN the query, as well as execute it, to confirm that a hash-based plan is used. * Is it worth devising a test case in which hashing is not possible because one of the columns isn't hashable? I have mixed feelings about this because the set of suitable column types may decrease to empty over time, making it hard to maintain the test case. I marked it RFC. regards, tom lane