pgsql: Use "#ifdef CATALOG_VARLEN" to protect nullable fields of pg_aut

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use "#ifdef CATALOG_VARLEN" to protect nullable fields of pg_aut
Date: 2015-02-20 05:23:55
Message-ID: E1YOg4B-0003od-F7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use "#ifdef CATALOG_VARLEN" to protect nullable fields of pg_authid.

This gives a stronger guarantee than a mere comment against accessing these
fields as simple struct members. Since rolpassword is in fact varlena,
it's not clear why these didn't get marked from the beginning, but let's
do it now.

Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/692bd09ad12a27fda3566787b089fbd394d7b65b

Modified Files
--------------
src/include/catalog/pg_authid.h | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-02-20 05:47:42 pgsql: Remove unused variable.
Previous Message Tom Lane 2015-02-20 05:12:00 pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.