Refactor routines for subscription and publication lookups
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/objectaddress.c | modified | +8 −6 |
| src/backend/catalog/pg_publication.c | modified | +9 −2 |
| src/backend/catalog/pg_subscription.c | modified | +9 −2 |
| src/include/catalog/pg_publication.h | modified | +1 −1 |
| src/include/catalog/pg_subscription.h | modified | +1 −1 |
Discussion
- Cache lookup errors with functions manipulation object addresses 64 messages · 2017-07-19 → 2020-07-15