postgresql/src/backend
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
..
access Support for INCLUDE attributes in GiST indexes 2019-03-10 11:37:17 +03:00
bootstrap tableam: introduce table AM infrastructure. 2019-03-06 09:54:38 -08:00
catalog Track block level checksum failures in pg_stat_database 2019-03-09 10:47:30 -08:00
commands Avoid some table rewrites for ALTER TABLE .. SET DATA TYPE timestamp. 2019-03-08 20:16:27 -08:00
executor Allow ATTACH PARTITION with only ShareUpdateExclusiveLock. 2019-03-07 11:13:12 -05:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Renaming for new subscripting mechanism 2019-02-01 12:50:32 -03:00
lib Make use of compiler builtins and/or assembly for CLZ, CTZ, POPCNT. 2019-02-15 23:22:33 -05:00
libpq Add new clientcert hba option verify-full 2019-03-09 12:19:47 -08:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Allow ATTACH PARTITION with only ShareUpdateExclusiveLock. 2019-03-07 11:13:12 -05:00
optimizer Fix handling of targetlist SRFs when scan/join relation is known empty. 2019-03-07 14:22:13 -05:00
parser Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE 2019-03-07 11:20:35 -03:00
partitioning Allow ATTACH PARTITION with only ShareUpdateExclusiveLock. 2019-03-07 11:13:12 -05:00
po Translation updates 2018-06-25 12:37:18 +02:00
port Add shared_memory_type GUC. 2019-02-03 12:47:26 +01:00
postmaster Track block level checksum failures in pg_stat_database 2019-03-09 10:47:30 -08:00
regex Update copyright for 2019 2019-01-02 12:44:25 -05:00
replication Track block level checksum failures in pg_stat_database 2019-03-09 10:47:30 -08:00
rewrite tableam: introduce table AM infrastructure. 2019-03-06 09:54:38 -08:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
storage Track block level checksum failures in pg_stat_database 2019-03-09 10:47:30 -08:00
tcop More unconstify use 2019-02-13 11:50:16 +01:00
tsearch Update copyright for 2019 2019-01-02 12:44:25 -05:00
utils Disallow NaN as a value for floating-point GUCs. 2019-03-10 12:59:16 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00