| От | Alvaro Herrera |
|---|---|
| Тема | pgsql: Improve notation of BuiltinTrancheNames |
| Дата | |
| Msg-id | E1rSdrq-002tIW-EL@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Improve notation of BuiltinTrancheNames Use C99 designated initializer syntax for array elements, instead of writing the position in a comment. This is less verbose and much more readable. Akin to cc150596341e. One disadvantage is that the BuiltinTrancheNames array now has a hole of 51 NULLs -- previously, the array elements were shifted 51 elements downward to avoid this. This can be fixed by merging the IndividualLWLockNames array into BuiltinTrancheNames, which would occupy those 51 pointers, but because it requires some arguably ugly Meson hackery, it's left for later. Discussion: https://postgr.es/m/202401231025.gbv4nnte5fmm@alvherre.pgsql Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/74a73063106583b1f49274a2cd1df42e35107361 Modified Files -------------- src/backend/storage/lmgr/lwlock.c | 97 +++++++++++++-------------------------- 1 file changed, 33 insertions(+), 64 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера