diff options
author | Amit Kapila <akapila@postgresql.org> | 2022-08-02 10:47:22 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2022-08-02 10:47:22 +0530 |
commit | 6b24d3f9cc55d392f3c1b8ff58024d3e3b70d22a (patch) | |
tree | 969b8c6c304fd2b168fe47f22da601de52eb5e45 /src/include/utils/lsyscache.h | |
parent | c689baa158bbe76597b4dacd61c415b58b60f4e0 (diff) |
Move common catalog cache access routines to lsyscache.c
In passing, move pg_relation_is_publishable next to similar functions.
Suggested-by: Alvaro Herrera
Author: Amit Kapila
Reviewed-by: Hou Zhijie
Discussion: https://postgr.es/m/CAHut+PupQ5UW9A9ut0Yjt21J9tHhx958z5L0k8-9hTYf_NYqxA@mail.gmail.com
Diffstat (limited to 'src/include/utils/lsyscache.h')
-rw-r--r-- | src/include/utils/lsyscache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index b8dd27d4a96..50f02883052 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -198,6 +198,10 @@ extern Oid get_index_column_opclass(Oid index_oid, int attno); extern bool get_index_isreplident(Oid index_oid); extern bool get_index_isvalid(Oid index_oid); extern bool get_index_isclustered(Oid index_oid); +extern Oid get_publication_oid(const char *pubname, bool missing_ok); +extern char *get_publication_name(Oid pubid, bool missing_ok); +extern Oid get_subscription_oid(const char *subname, bool missing_ok); +extern char *get_subscription_name(Oid subid, bool missing_ok); #define type_is_array(typid) (get_element_type(typid) != InvalidOid) /* type_is_array_domain accepts both plain arrays and domains over arrays */ |