aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-04-04 18:03:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-04-04 18:03:30 -0400
commit07871d40c72e498b6e034eb674df5d8d206976bc (patch)
tree76045cf9e82f7d28b4806e83ba6cbca6f4151119 /src/backend/executor/nodeHash.c
parentc6b92041d38512a4176ed76ad06f713d2e6c01a8 (diff)
downloadpostgresql-07871d40c72e498b6e034eb674df5d8d206976bc.tar.gz
postgresql-07871d40c72e498b6e034eb674df5d8d206976bc.zip
Remove bogus Assert, add some regression test cases showing why.
Commit 77ec5affb added an assertion to enforce_generic_type_consistency that boils down to "if the function result is polymorphic, there must be at least one polymorphic argument". This should be true for user-created functions, but there are built-in functions for which it's not true, as pointed out by Jaime Casanova. Hence, go back to the old behavior of leaving the return type alone. There's only a limited amount of stuff you can do with such a function result, but it does work to some extent; add some regression test cases to ensure we don't break that again. Discussion: https://postgr.es/m/CAJGNTeMbhtsCUZgJJ8h8XxAJbK7U2ipsX8wkHRtZRz-NieT8RA@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions