postgresql/contrib/btree_gist
Tom Lane 542320c2bd Be more careful about printing constants in ruleutils.c.
The previous coding in get_const_expr() tried to avoid quoting integer,
float, and numeric literals if at all possible.  While that looks nice,
it means that dumped expressions might re-parse to something that's
semantically equivalent but not the exact same parsetree; for example
a FLOAT8 constant would re-parse as a NUMERIC constant with a cast to
FLOAT8.  Though the result would be the same after constant-folding,
this is problematic in certain contexts.  In particular, Jeff Davis
pointed out that this could cause unexpected failures in ALTER INHERIT
operations because of child tables having not-exactly-equivalent CHECK
expressions.  Therefore, favor correctness over legibility and dump
such constants in quotes except in the limited cases where they'll
be interpreted as the same type even without any casting.

This results in assorted small changes in the regression test outputs,
and will affect display of user-defined views and rules similarly.
The odds of that causing problems in the field seem non-negligible;
given the lack of previous complaints, it seems best not to change
this in the back branches.
2015-03-30 14:59:49 -04:00
..
data Add missing newlines at end of files 2010-10-26 20:11:43 +03:00
expected Be more careful about printing constants in ruleutils.c. 2015-03-30 14:59:49 -04:00
sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_bit.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_bytea.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_cash.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_date.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.0--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
btree_gist.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_gist.control Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist.h Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
btree_inet.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_int2.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_interval.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_macaddr.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_numeric.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_oid.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_text.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_time.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_ts.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_utils_num.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_utils_num.h Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_utils_var.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_utils_var.h Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00