postgresql/contrib/btree_gist
Heikki Linnakangas 670bf71f65 Remove dead NULL-pointer checks in GiST code.
gist_poly_compress() and gist_circle_compress() checked for a NULL-pointer
key argument, but that was dead code; the gist code never passes a
NULL-pointer to the "compress" method.

This commit also removes a documentation note added in commit a0a3883,
about doing NULL-pointer checks in the "compress" method. It was added
based on the fact that some implementations were doing NULL-pointer
checks, but those checks were unnecessary in the first place.

The NULL-pointer check in gbt_var_same() function was also unnecessary.
The arguments to the "same" method come from the "compress", "union", or
"picksplit" methods, but none of them return a NULL pointer.

None of this is to be confused with SQL NULL values. Those are dealt with
by the gist machinery, and are never passed to the GiST opclass methods.

Michael Paquier
2015-01-28 10:03:58 +02:00
..
data
expected
sql
.gitignore
btree_bit.c Initialize padding bytes in btree_gist varbit support. 2014-05-13 15:15:13 +03: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 Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_date.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_float4.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_float8.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_gist--1.0.sql
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
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 Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_int4.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_int8.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_interval.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_macaddr.c Fix a second cause of undersized pallocs for btree_gist indexes on macaddr. 2014-05-16 15:18:09 -04:00
btree_numeric.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_oid.c Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04: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 Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_ts.c Support timezone abbreviations that sometimes change. 2014-10-16 15:22:10 -04:00
btree_utils_num.c Remove dead NULL-pointer checks in GiST code. 2015-01-28 10:03:58 +02:00
btree_utils_num.h Fix valgrind warning for btree_gist indexes on macaddr. 2014-05-16 15:11:51 -04:00
btree_utils_var.c Remove dead NULL-pointer checks in GiST code. 2015-01-28 10:03:58 +02:00
btree_utils_var.h
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00