-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathddl.h
47 lines (40 loc) · 1.47 KB
/
ddl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*----------------------------------------------------------------------------
*
* ddl.h
* Statement based replication of DDL commands.
*
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*----------------------------------------------------------------------------
*/
#ifndef DML_H
#define DML_H
#include "utils/relcache.h"
/* GUCs */
extern bool MtmMonotonicSequences;
extern char *MtmRemoteFunctionsList;
extern bool MtmRemoteFunctionsUpdating;
extern bool MtmVolksWagenMode;
extern bool MtmIgnoreTablesWithoutPk;
typedef enum
{
MTM_DDL_IN_PROGRESS_NOTHING,
MTM_DDL_IN_PROGRESS_TX,
MTM_DDL_IN_PROGRESS_NONTX,
} MtmDDLInProgress;
extern MtmDDLInProgress DDLApplyInProgress;
extern void MtmDDLReplicationInit(void);
extern void MtmDDLReplicationShmemStartup(void);
extern void temp_schema_reset_all(int my_node_id);
extern void temp_schema_reset(bool transactional);
extern void temp_schema_init(void);
extern bool MtmIsRelationLocal(Relation rel);
extern void MtmDDLResetStatement(void);
extern void MtmApplyDDLMessage(const char *messageBody, bool transactional);
extern void MtmDDLResetApplyState(void);
extern void MtmSetRemoteFunction(char const *list, void *extra);
extern void MtmToggleDML(void);
extern void MtmMakeTableLocal(char const *schema, char const *name, bool locked);
extern void multimaster_fmgr_hook(FmgrHookEventType event, FmgrInfo *flinfo, Datum *private);
#endif