PostgreSQL Source Code  git master
publicationcmds.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * publicationcmds.h
4  * prototypes for publicationcmds.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/commands/publicationcmds.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 #ifndef PUBLICATIONCMDS_H
16 #define PUBLICATIONCMDS_H
17 
18 #include "catalog/objectaddress.h"
19 #include "parser/parse_node.h"
20 #include "utils/inval.h"
21 
22 /* Same as MAXNUMMESSAGES in sinvaladt.c */
23 #define MAX_RELCACHE_INVAL_MSGS 4096
24 
27 extern void RemovePublicationById(Oid pubid);
28 extern void RemovePublicationRelById(Oid proid);
29 extern void RemovePublicationSchemaById(Oid psoid);
30 
31 extern ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId);
32 extern void AlterPublicationOwner_oid(Oid subid, Oid newOwnerId);
33 extern void InvalidatePublicationRels(List *relids);
34 extern bool pub_rf_contains_invalid_column(Oid pubid, Relation relation,
35  List *ancestors, bool pubviaroot);
36 extern bool pub_collist_contains_invalid_column(Oid pubid, Relation relation,
37  List *ancestors, bool pubviaroot);
38 
39 #endif /* PUBLICATIONCMDS_H */
#define stmt
Definition: indent_codes.h:59
unsigned int Oid
Definition: postgres_ext.h:31
void InvalidatePublicationRels(List *relids)
void RemovePublicationSchemaById(Oid psoid)
ObjectAddress CreatePublication(ParseState *pstate, CreatePublicationStmt *stmt)
bool pub_rf_contains_invalid_column(Oid pubid, Relation relation, List *ancestors, bool pubviaroot)
bool pub_collist_contains_invalid_column(Oid pubid, Relation relation, List *ancestors, bool pubviaroot)
void RemovePublicationById(Oid pubid)
void AlterPublication(ParseState *pstate, AlterPublicationStmt *stmt)
void RemovePublicationRelById(Oid proid)
ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId)
void AlterPublicationOwner_oid(Oid subid, Oid newOwnerId)
Definition: pg_list.h:54
const char * name