pgsql: Refactor routines for subscription and publication lookups

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Refactor routines for subscription and publication lookups
Дата
Msg-id E1g26Gw-0002Xd-LP@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Refactor routines for subscription and publication lookups

Those routines gain a missing_ok argument, allowing a caller to get a
NULL result instead of an error if set to true.  This is part of a
larger refactoring effort for objectaddress.c where trying to check for
non-existing objects does not result in cache lookup failures.

Author: Michael Paquier
Reviewed-by: Aleksander Alekseev, Álvaro Herrera
Discussion: https://postgr.es/m/CAB7nPqSZxrSmdHK-rny7z8mi=EAFXJ5J-0RbzDw6aus=wB5azQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d6fbc38d9ed03dc7fd297119d7949b6531aed5a

Modified Files
--------------
src/backend/catalog/objectaddress.c   | 14 ++++++++------
src/backend/catalog/pg_publication.c  | 11 +++++++++--
src/backend/catalog/pg_subscription.c | 11 +++++++++--
src/include/catalog/pg_publication.h  |  2 +-
src/include/catalog/pg_subscription.h |  2 +-
5 files changed, 28 insertions(+), 12 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Stamp 11beta4.
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Allow DSM allocation to be interrupted.