aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeRecursiveunion.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-07-09 22:57:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-07-09 22:57:39 +0000
commit5ce63f480b9b9e77d4f5ab70cf59e8e31d40a8e0 (patch)
treec97113e8e622625ae0ae889a4196c159f2aeddb6 /src/backend/executor/nodeRecursiveunion.c
parent2b8a624596179efc3605cef4c80ba9fcea75c21c (diff)
downloadpostgresql-5ce63f480b9b9e77d4f5ab70cf59e8e31d40a8e0.tar.gz
postgresql-5ce63f480b9b9e77d4f5ab70cf59e8e31d40a8e0.zip
Avoid an Assert failure in deconstruct_array() by making get_attstatsslot()
use the actual element type of the array it's disassembling, rather than trusting the type OID passed in by its caller. This is needed because sometimes the planner passes in a type OID that's only binary-compatible with the target column's type, rather than being an exact match. Per an example from Bernd Helmle. Possibly we should refactor get_attstatsslot/free_attstatsslot to not expect the caller to supply type ID data at all, but for now I'll just do the minimum-change fix. Back-patch to 7.4. Bernd's test case only crashes back to 8.0, but since these subroutines are the same in 7.4, I suspect there may be variant cases that would crash 7.4 as well.
Diffstat (limited to 'src/backend/executor/nodeRecursiveunion.c')
0 files changed, 0 insertions, 0 deletions