mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Logical replication
- Add PUBLICATION catalogs and DDL - Add SUBSCRIPTION catalog and DDL - Define logical replication protocol and output plugin - Add logical replication workers From: Petr Jelinek <petr@2ndquadrant.com> Reviewed-by: Steve Singer <steve@ssinger.info> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Erik Rijkers <er@xs4all.nl> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
This commit is contained in:
@@ -154,5 +154,6 @@ extern int64 defGetInt64(DefElem *def);
|
||||
extern List *defGetQualifiedName(DefElem *def);
|
||||
extern TypeName *defGetTypeName(DefElem *def);
|
||||
extern int defGetTypeLength(DefElem *def);
|
||||
extern List *defGetStringList(DefElem *def);
|
||||
|
||||
#endif /* DEFREM_H */
|
||||
|
28
src/include/commands/publicationcmds.h
Normal file
28
src/include/commands/publicationcmds.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* publicationcmds.h
|
||||
* prototypes for publicationcmds.c.
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* src/include/commands/publicationcmds.h
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef PUBLICATIONCMDS_H
|
||||
#define PUBLICATIONCMDS_H
|
||||
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern ObjectAddress CreatePublication(CreatePublicationStmt *stmt);
|
||||
extern void AlterPublication(AlterPublicationStmt *stmt);
|
||||
extern void RemovePublicationById(Oid pubid);
|
||||
extern void RemovePublicationRelById(Oid proid);
|
||||
|
||||
extern ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId);
|
||||
extern void AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId);
|
||||
|
||||
#endif /* PUBLICATIONCMDS_H */
|
27
src/include/commands/subscriptioncmds.h
Normal file
27
src/include/commands/subscriptioncmds.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* subscriptioncmds.h
|
||||
* prototypes for subscriptioncmds.c.
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* src/include/commands/subscriptioncmds.h
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef SUBSCRIPTIONCMDS_H
|
||||
#define SUBSCRIPTIONCMDS_H
|
||||
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern ObjectAddress CreateSubscription(CreateSubscriptionStmt *stmt);
|
||||
extern ObjectAddress AlterSubscription(AlterSubscriptionStmt *stmt);
|
||||
extern void DropSubscription(DropSubscriptionStmt *stmt);
|
||||
|
||||
extern ObjectAddress AlterSubscriptionOwner(const char *name, Oid newOwnerId);
|
||||
extern void AlterSubscriptionOwner_oid(Oid subid, Oid newOwnerId);
|
||||
|
||||
#endif /* SUBSCRIPTIONCMDS_H */
|
Reference in New Issue
Block a user