aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-01-10 04:26:36 +0000
committerRobert Haas <rhaas@postgresql.org>2010-01-10 04:26:36 +0000
commit84b6d5f35941a0406210e7938d10c3cce4e11340 (patch)
tree23fa242445215cc5ff36b06ac9af3abeeca37e2e /src/backend/commands/dbcommands.c
parent8b9fa7a93ab32f670de9931c0e0f104befed64af (diff)
downloadpostgresql-84b6d5f35941a0406210e7938d10c3cce4e11340.tar.gz
postgresql-84b6d5f35941a0406210e7938d10c3cce4e11340.zip
Remove partial, broken support for NULL pointers when fetching attributes.
Previously, fastgetattr() and heap_getattr() tested their fourth argument against a null pointer, but any attempt to use them with a literal-NULL fourth argument evaluated to *(void *)0, resulting in a compiler error. Remove these NULL tests to avoid leading future readers of this code to believe that this has a chance of working. Also clean up related legacy code in nocachegetattr(), heap_getsysattr(), and nocache_index_getattr(). The new coding standard is that any code which calls a getattr-type function or macro which takes an isnull argument MUST pass a valid boolean pointer. Per discussion with Bruce Momjian, Tom Lane, Alvaro Herrera.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions