postgresql/src
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
..
backend Remove dead NULL-pointer checks in GiST code. 2015-01-28 10:03:58 +02:00
bin Clean up some mess in row-security patches. 2015-01-24 16:16:22 -05:00
common Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:44 -05:00
include Add a note to PG_TRY's documentation about volatile safety. 2015-01-26 15:53:37 -05:00
interfaces Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:42 -05:00
makefiles Revert haphazard pgxs makefile changes 2014-12-04 08:07:59 -05:00
pl Fix volatile-safety issue in pltcl_SPI_execute_plan(). 2015-01-26 12:18:25 -05:00
port Remove no-longer-referenced src/port/gethostname.c. 2015-01-24 12:13:57 -05:00
template Remove duplicate specification of -Ae for HP-UX C compiler. 2015-01-13 22:52:11 -05:00
test Clean up some mess in row-security patches. 2015-01-24 16:16:22 -05:00
timezone Update copyright for 2015 2015-01-06 11:43:47 -05:00
tools tools/ccsym: update for modern versions of gcc 2015-01-20 13:02:58 -05:00
tutorial Update copyright for 2015 2015-01-06 11:43:47 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Fix installcheck case for tap tests 2014-12-24 10:31:36 -05:00
Makefile.shlib Install shared libraries also in bin on cygwin, mingw 2015-01-18 22:36:40 -05:00
nls-global.mk
win32.mak