From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor routines for subscription and publication lookups
Date: Tue, 18 Sep 2018 03:01:54 +0000
Message-ID: <E1g26Gw-0002Xd-LP@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Refactor routines for subscription and publication lookups
In-Reply-To: <E1g26Gw-0002Xd-LP@gemulon.postgresql.org>
References: <E1g26Gw-0002Xd-LP@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox