Re: Array initialisation notation in syscache.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Array initialisation notation in syscache.c
Дата
Msg-id 1228988.1671577542@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Array initialisation notation in syscache.c  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Array initialisation notation in syscache.c
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> Do you think this is better?

I'm not at all on board with adding runtime overhead to
save maintaining the nkeys fields.

Getting rid of the useless trailing zeroes in the key[] arrays
is clearly a win, though.

I'm kind of neutral on using "[N] = " as a substitute for
ordering the entries correctly.  While that does remove
one failure mode, it seems like it adds another (ie
failure to provide an entry at all would be masked).

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: meson files copyright
Следующее
От: Ian Lawrence Barwick
Дата:
Сообщение: Re: [PATCH] Add function to_oct