From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Refactor routines for subscription and publication lookups |
Date: | 2018-09-18 03:01:54 |
Message-ID: | E1g26Gw-0002Xd-LP@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2018-09-18 11:46:52 | pgsql: Allow DSM allocation to be interrupted. |
Previous Message | Michael Paquier | 2018-09-18 02:42:27 | Re: pgsql: Allow concurrent-safe open() and fopen() in frontend code for Wi |