Use "#ifdef CATALOG_VARLEN" to protect nullable fields of pg_authid.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Feb 2015 05:23:48 +0000 (00:23 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Feb 2015 05:23:48 +0000 (00:23 -0500)
commit692bd09ad12a27fda3566787b089fbd394d7b65b
tree797421fd19d3e0d4f1edb9119132a43ddccdc440
parent09d8d110a604e52216102e73fb8475b7aa88f1d1
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
src/include/catalog/pg_authid.h