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:54
Message-ID: E1QF98Y-0006qK-0j@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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f6c75b541385eb2d48f7ef62c1c323ec2642134

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 Magnus Hagander 2011-04-27 18:40:25 pgsql: timeline is not needed in BaseBackup()
Previous Message Tom Lane 2011-04-27 18:06:53 pgsql: Add comments about the need to avoid uninitialized bits in datat