Thread: pgsql: Refactor routines for subscription and publication lookups
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(-)