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 Add missing newlines at end of files 2010-10-26 20:11:43 +03:00
expected Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
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 Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04: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 Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05: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 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 Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00