aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-10-06 15:50:24 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-10-06 15:50:24 -0400
commit12ff678e1d657fc94a1cfa90f1b85dd9bd79e1e6 (patch)
tree215080ea04ef91217e0a906bfea21b13f7ae4e32 /src/tutorial/complex.c
parent8e26b868d5cfe9c746578aa3b172b6f24a5a310c (diff)
downloadpostgresql-12ff678e1d657fc94a1cfa90f1b85dd9bd79e1e6.tar.gz
postgresql-12ff678e1d657fc94a1cfa90f1b85dd9bd79e1e6.zip
Fix null-pointer crash in postgres_fdw's conversion_error_callback.
Commit c7b7311f6 adjusted conversion_error_callback to always use information from the query's rangetable, to avoid doing catalog lookups in an already-failed transaction. However, as a result of the utterly inadequate documentation for make_tuple_from_result_row, I failed to realize that fsstate could be NULL in some contexts. That led to a crash if we got a conversion error in such a context. Fix by falling back to the previous coding when fsstate is NULL. Improve the commentary, too. Per report from Andrey Borodin. Back-patch to 9.6, like the previous patch. Discussion: https://postgr.es/m/08916396-55E4-4D68-AB3A-BD6066F9E5C0@yandex-team.ru
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions