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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 692bd09ad12a27fda3566787b089fbd394d7b65b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-02-20T05:23:48Z
Releases: 9.5.0
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

Files

PathChange+/−
src/include/catalog/pg_authid.h modified +2 −0