pgsql: Add comments about the need to avoid uninitialized bits in datat - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add comments about the need to avoid uninitialized bits in datat
Date
Msg-id E1QF98Y-0006qK-0j@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix array- and path-creating functions to ensure padding bytes a
Next
From: Tom Lane
Date:
Subject: pgsql: Add comments about the need to avoid uninitialized bits in datat