mirror of
https://github.com/postgres/postgres.git
synced 2025-12-15 02:22:24 +03:00
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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user