[PATCH 5/8] Add a new syscache to fetch a pg_class entry via (reltablespace, relfilenode)

Поиск
Список
Период
Сортировка
От Andres Freund
Тема [PATCH 5/8] Add a new syscache to fetch a pg_class entry via (reltablespace, relfilenode)
Дата
Msg-id 1347669575-14371-5-git-send-email-andres@2ndquadrant.com
обсуждение исходный текст
Ответ на [RFC][PATCH] wal decoding, attempt #2  (Andres Freund <andres@2ndquadrant.com>)
Ответы Add pg_relation_by_filenode(reltbspc, filenode) admin function  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
This patch is problematic because formally indexes used by syscaches needs to
be unique, this one is not though because of 0/InvalidOids relfilenode entries
for nailed/shared catalog entries. Those values cannot be sensibly queries from
the catalog anyway though (the relmapper infrastructure needs to be used).

It might be nicer to add infrastructure to do this properly, I just don't have
a clue what the best way for this would be.
---
 src/backend/utils/cache/syscache.c | 11 +++++++++++
 src/include/catalog/indexing.h     |  2 ++
 src/include/catalog/pg_proc.h      |  1 +
 src/include/utils/syscache.h       |  1 +
 4 files changed, 15 insertions(+)


Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: [PATCH 6/8] Log enough data into the wal to reconstruct logical changes from it if wal_level=logical
Следующее
От: Andres Freund
Дата:
Сообщение: [PATCH 8/8] Introduce wal decoding via catalog timetravel