diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-10-03 16:40:05 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-10-03 16:40:25 -0400 |
commit | 6bc811c992a804bdb8d228ce0be9f0a8e7198df6 (patch) | |
tree | ee185c4206edb4b9b31e9e09991d4b3f655bf408 /contrib/hstore_plpython/hstore_plpython.c | |
parent | 814b9e9b8edf36cac65e0d8fcef17e50a04b1617 (diff) | |
download | postgresql-6bc811c992a804bdb8d228ce0be9f0a8e7198df6.tar.gz postgresql-6bc811c992a804bdb8d228ce0be9f0a8e7198df6.zip |
Show a sensible value in pg_settings.unit for GUC_UNIT_XSEGS variables.
Commit 88e982302 invented GUC_UNIT_XSEGS for min_wal_size and max_wal_size,
but neglected to make it display sensibly in pg_settings.unit (by adding a
case to the switch in GetConfigOptionByNum). Fix that, and adjust said
switch to throw a run-time error the next time somebody forgets.
In passing, avoid using a static buffer for the output string --- the rest
of this function pstrdup's from a local buffer, and I see no very good
reason why the units code should do it differently and less safely.
Per report from Otar Shavadze. Back-patch to 9.5 where the new unit type
was added.
Report: <CAG-jOyA=iNFhN+yB4vfvqh688B7Tr5SArbYcFUAjZi=0Exp-Lg@mail.gmail.com>
Diffstat (limited to 'contrib/hstore_plpython/hstore_plpython.c')
0 files changed, 0 insertions, 0 deletions