postgresql/contrib/btree_gist
Andres Freund 62e2a8dc2c Define integer limits independently from the system definitions.
In 83ff1618 we defined integer limits iff they're not provided by the
system. That turns out not to be the greatest idea because there's
different ways some datatypes can be represented. E.g. on OSX PG's 64bit
datatype will be a 'long int', but OSX unconditionally uses 'long
long'. That disparity then can lead to warnings, e.g. around printf
formats.

One way to fix that would be to back int64 using stdint.h's
int64_t. While a good idea it's not that easy to implement. We would
e.g. need to include stdint.h in our external headers, which we don't
today. Also computing the correct int64 printf formats in that case is
nontrivial.

Instead simply prefix the integer limits with PG_ and define them
unconditionally. I've adjusted all the references to them in code, but
not the ones in comments; the latter seems unnecessary to me.

Discussion: 20150331141423.GK4878@alap3.anarazel.de
2015-04-02 17:43:35 +02:00
..
data
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
btree_bit.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_bytea.c
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
btree_gist.control Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist.h
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
btree_time.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_ts.c Define integer limits independently from the system definitions. 2015-04-02 17:43:35 +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
Makefile Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00