aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-10-25 15:22:40 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-10-25 15:22:40 -0400
commit2bbdf8e2e827fe80fd39a4a5e2f432f4e8ae6ca3 (patch)
tree83c06b2ac522a2289976f41f2746e1e6f6d59e04 /contrib/postgres_fdw/postgres_fdw.c
parent4a61aa4a945f5737c65d288077101ed202488e9a (diff)
downloadpostgresql-2bbdf8e2e827fe80fd39a4a5e2f432f4e8ae6ca3.tar.gz
postgresql-2bbdf8e2e827fe80fd39a4a5e2f432f4e8ae6ca3.zip
Avoid failure when selecting a namespace node in XMLTABLE.
It appears that libxml2 doesn't bother to set the "children" field of an XML_NAMESPACE_DECL node to null; that field just contains garbage. In v10 and v11, this can result in a crash in XMLTABLE(). The rewrite done in commit 251cf2e27 fixed this, somewhat accidentally, in v12. We're not going to back-patch 251cf2e27, however. The case apparently doesn't have wide use, so rather than risk introducing other problems, just add a safety check to throw an error. Even though no bug manifests in v12/HEAD, add the relevant test case there too, to prevent future regressions. Chapman Flack (per private report)
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions