Refactor routines for subscription and publication lookups
authorMichael Paquier <michael@paquier.xyz>
Tue, 18 Sep 2018 03:00:18 +0000 (12:00 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 18 Sep 2018 03:00:18 +0000 (12:00 +0900)
commit1d6fbc38d9ed03dc7fd297119d7949b6531aed5a
tree5115d664c2eed555eca9f953e1ae95f6fadb2a73
parent07a3af0ff81d8ac6d2e787e13ca10de36313aa51
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
src/backend/catalog/objectaddress.c
src/backend/catalog/pg_publication.c
src/backend/catalog/pg_subscription.c
src/include/catalog/pg_publication.h
src/include/catalog/pg_subscription.h