Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2023-11-02 15:53:36 +0000
committerTom Lane2023-11-02 15:53:36 +0000
commit0bc726d95a305ca923b1f284159f40f0d5cf5725 (patch)
treec5c8e1bd16dd70a7b2c0766949e8289416fa77db /contrib/postgres_fdw/deparse.c
parent7704a1a72e879daaefa1742916e01505edd2ce47 (diff)
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/deparse.c')
0 files changed, 0 insertions, 0 deletions