Refactor routines for subscription and publication lookups

Michael Paquier <michael@paquier.xyz>

Commit: 1d6fbc38d9ed03dc7fd297119d7949b6531aed5a
Author: Michael Paquier <michael@paquier.xyz>
Date: 2018-09-18T03:00:18Z
Releases: 12.0
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

Files

Discussion