pgsql: Add comments about the need to avoid uninitialized bits in datat

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add comments about the need to avoid uninitialized bits in datat
Date: 2011-04-27 18:06:53
Message-ID: E1QF98X-0006qM-TK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add comments about the need to avoid uninitialized bits in datatype values.

There was already one recommendation in the documentation about writing
C functions to ensure padding bytes are zeroes, but make it stronger.

Also fix an example that was still using direct assignment to a varlena
length word, which no longer works since the varvarlena changes.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/db3cf2529304f96eabedd21f292bc661d5772aee

Modified Files
--------------
doc/src/sgml/xfunc.sgml | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-27 18:06:54 pgsql: Add comments about the need to avoid uninitialized bits in datat
Previous Message Tom Lane 2011-04-27 17:59:33 pgsql: Fix array- and path-creating functions to ensure padding bytes a