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-2025, 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
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
27extern void RemovePublicationById(Oid pubid);
28extern void RemovePublicationRelById(Oid proid);
29extern void RemovePublicationSchemaById(Oid psoid);
30
31extern ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId);
32extern void AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId);
33extern void InvalidatePublicationRels(List *relids);
34extern bool pub_rf_contains_invalid_column(Oid pubid, Relation relation,
35 List *ancestors, bool pubviaroot);
36extern bool pub_contains_invalid_column(Oid pubid, Relation relation,
37 List *ancestors, bool pubviaroot,
38 char pubgencols_type,
39 bool *invalid_column_list,
40 bool *invalid_gen_col);
41extern void InvalidatePubRelSyncCache(Oid pubid, bool puballtables);
42
43#endif /* PUBLICATIONCMDS_H */
#define stmt
Definition: indent_codes.h:59
unsigned int Oid
Definition: postgres_ext.h:32
bool pub_contains_invalid_column(Oid pubid, Relation relation, List *ancestors, bool pubviaroot, char pubgencols_type, bool *invalid_column_list, bool *invalid_gen_col)
void AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId)
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)
void InvalidatePubRelSyncCache(Oid pubid, bool puballtables)
void RemovePublicationById(Oid pubid)
void AlterPublication(ParseState *pstate, AlterPublicationStmt *stmt)
void RemovePublicationRelById(Oid proid)
ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId)
Definition: pg_list.h:54
const char * name