postgresql/src/backend/access
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
..
brin Tweak BRIN minmax operator class 2015-01-22 17:01:09 -03:00
common Update copyright for 2015 2015-01-06 11:43:47 -05:00
gin Update copyright for 2015 2015-01-06 11:43:47 -05:00
gist Remove dead NULL-pointer checks in GiST code. 2015-01-28 10:03:58 +02:00
hash Update copyright for 2015 2015-01-06 11:43:47 -05:00
heap Update copyright for 2015 2015-01-06 11:43:47 -05:00
index Update copyright for 2015 2015-01-06 11:43:47 -05:00
nbtree Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
rmgrdesc Tweak heapam's rmgr desc output slightly 2015-01-12 16:09:16 -03:00
spgist Update copyright for 2015 2015-01-06 11:43:47 -05:00
transam Fix thinko in re-setting wal_log_hints flag from a parameter-change record. 2015-01-15 20:52:41 +02:00
Makefile BRIN: Block Range Indexes 2014-11-07 16:38:14 -03:00