aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-11-02 11:53:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-11-02 11:53:36 -0400
commit0bc726d95a305ca923b1f284159f40f0d5cf5725 (patch)
treec5c8e1bd16dd70a7b2c0766949e8289416fa77db /contrib/postgres_fdw/postgres_fdw.h
parent7704a1a72e879daaefa1742916e01505edd2ce47 (diff)
downloadpostgresql-0bc726d95a305ca923b1f284159f40f0d5cf5725.tar.gz
postgresql-0bc726d95a305ca923b1f284159f40f0d5cf5725.zip
Make GetConfigOption/GetConfigOptionResetString return "" for NULL.
As per the preceding commit, GUC APIs generally expose NULL-valued string variables as empty strings. Extend that policy to GetConfigOption() and GetConfigOptionResetString(), eliminating a crash hazard for unwary callers, as well as a fundamental ambiguity in GetConfigOption()'s API. No back-patch, since this is an API change and conceivably somebody somewhere is depending on this corner case. Xing Guo, Aleksander Alekseev, Tom Lane Discussion: https://postgr.es/m/CACpMh+AyDx5YUpPaAgzVwC1d8zfOL4JoD-uyFDnNSa1z0EsDQQ@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions