pgsql: Add some debug support code to try to catch future mistakes in

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add some debug support code to try to catch future mistakes in
Date: 2008-04-11 22:54:23
Message-ID: 20080411225423.3F4FA7559CD@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/parser:
parse_type.c (r1.94 -> r1.95)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_type.c?r1=1.94&r2=1.95)
pgsql/src/backend/utils/mmgr:
aset.c (r1.76 -> r1.77)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/aset.c?r1=1.76&r2=1.77)
pgsql/src/include:
pg_config_manual.h (r1.30 -> r1.31)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/pg_config_manual.h?r1=1.30&r2=1.31)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-04-11 23:53:00 pgsql: A quick try at un-breaking the Cygwin build.
Previous Message Tom Lane 2008-04-11 22:53:33 pgsql: Fix several datatype input functions that were allowing unused