postgresql/src
Tom Lane ac75959cdc Disallow NaN as a value for floating-point GUCs.
None of the code that uses GUC values is really prepared for them to
hold NaN, but parse_real() didn't have any defense against accepting
such a value.  Treat it the same as a syntax error.

I haven't attempted to analyze the exact consequences of setting any
of the float GUCs to NaN, but since they're quite unlikely to be good,
this seems like a back-patchable bug fix.

Note: we don't need an explicit test for +-Infinity because those will
be rejected by existing range checks.  I added a regression test for
that in HEAD, but not older branches because the spelling of the value
in the error message will be platform-dependent in branches where we
don't always use port/snprintf.c.

Discussion: https://postgr.es/m/1798.1552165479@sss.pgh.pa.us
2019-03-10 12:59:16 -04:00
..
backend Disallow NaN as a value for floating-point GUCs. 2019-03-10 12:59:16 -04:00
bin pg_upgrade: Ignore TOAST for partitioned tables 2019-03-10 13:20:58 -03:00
common Tighten use of OpenTransientFile and CloseTransientFile 2019-03-09 08:50:55 +09:00
fe_utils More unconstify use 2019-02-13 11:50:16 +01:00
include Support for INCLUDE attributes in GiST indexes 2019-03-10 11:37:17 +03:00
interfaces Fix whitespace 2019-03-01 20:56:53 +01:00
makefiles Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
pl Remove unnecessary use of PROCEDURAL 2019-02-25 08:38:59 +01:00
port Fix error handling of readdir() port implementation on first file lookup 2019-03-04 09:49:06 +09:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Disallow NaN as a value for floating-point GUCs. 2019-03-10 12:59:16 -04:00
timezone More unconstify use 2019-02-13 11:50:16 +01:00
tools Simplify release-note links to back branches. 2019-03-09 18:42:39 -05:00
tutorial SQL comment: remove extra word in heading comment 2019-01-25 18:57:21 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Revert attempts to use POPCNT etc instructions 2019-02-15 16:32:30 -03:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00