Add some debug support code to try to catch future mistakes in the area of
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Apr 2008 22:54:23 +0000 (22:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Apr 2008 22:54:23 +0000 (22:54 +0000)
commit3ecbfe3d478ef5ca08c2b31a47f8597a24060dcf
tree37042a456217f51e925615dc1645e18234c94ab7
parent76289946173c26db76541ddb8f87bfd64d584c23
Add some debug support code to try to catch future mistakes in the area of
input functions that include garbage bytes in their results.  Provide a
compile-time option RANDOMIZE_ALLOCATED_MEMORY to make palloc fill returned
blocks with variable contents.  This option also makes the parser perform
conversions of literal constants twice and compare the results, emitting a
WARNING if they don't match.  (This is the code I used to catch the input
function bugs fixed in the previous commit.)  For the moment, I've set it
to be activated automatically by --enable-cassert.
src/backend/parser/parse_type.c
src/backend/utils/mmgr/aset.c
src/include/pg_config_manual.h