aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-11-11 11:10:53 -0800
committerNoah Misch <noah@leadboat.com>2017-11-11 11:11:21 -0800
commite7083dfce5754e38063502c683b7b7fa57021893 (patch)
treeb47df0cdb68a1678af339ea3f6ab4e87621cb716 /src/backend/access/gist/gistscan.c
parent9efd83bfd32b38c675b263f532ebe9a6ec53149e (diff)
downloadpostgresql-e7083dfce5754e38063502c683b7b7fa57021893.tar.gz
postgresql-e7083dfce5754e38063502c683b7b7fa57021893.zip
Ignore XML declaration in xpath_internal(), for UTF8 databases.
When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient for non-UTF8 databases, so preserve behavior there until the xpath facility can support such databases comprehensively. Back-patch to 9.3 (all supported versions). Pavel Stehule and Noah Misch Discussion: https://postgr.es/m/CAFj8pRC-dM=tT=QkGi+Achkm+gwPmjyOayGuUfXVumCxkDgYWg@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions