pgsql: Add Asserts to verify that catalog cache keys are unique and not
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Add Asserts to verify that catalog cache keys are unique and not |
| Дата | |
| Msg-id | E1Wy7C5-0005mo-N3@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Add Asserts to verify that catalog cache keys are unique and not null. The catcache code is effectively assuming this already, so let's insist that the catalog and index are actually declared that way. Having done that, the comments in indexing.h about non-unique indexes not being used for catcaches are completely redundant not just mostly so; and we didn't have such a comment for every such index anyway. So let's get rid of them. Per discussion of whether we should identify primary keys for catalogs. We might or might not take that further step, but this change in itself will allow quicker detection of misdeclared catcaches, so it seems worth doing in any case. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/8b38a538c0aa5a432dacd90f10805dc667a3d1a0 Modified Files -------------- src/backend/utils/cache/catcache.c | 18 +++++++++++++++++- src/include/catalog/indexing.h | 16 +--------------- 2 files changed, 18 insertions(+), 16 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера