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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Use "#ifdef CATALOG_VARLEN" to protect nullable fields of pg_aut
Дата
Msg-id E1YOg4B-0003od-F7@gemulon.postgresql.org
обсуждение исходный текст
Список 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(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove unused variable.