-
Notifications
You must be signed in to change notification settings - Fork 154
/
pglogical_apply.h
35 lines (30 loc) · 1.16 KB
/
pglogical_apply.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
/*-------------------------------------------------------------------------
*
* pglogical_apply.h
* pglogical apply functions
*
* Copyright (c) 2015, PostgreSQL Global Development Group
*
* IDENTIFICATION
* pglogical_apply.h
*
*-------------------------------------------------------------------------
*/
#ifndef PGLOGICAL_APPLY_H
#define PGLOGICAL_APPLY_H
#include "pglogical_relcache.h"
#include "pglogical_proto_native.h"
typedef void (*pglogical_apply_begin_fn) (void);
typedef void (*pglogical_apply_commit_fn) (void);
typedef void (*pglogical_apply_insert_fn) (PGLogicalRelation *rel,
PGLogicalTupleData *newtup);
typedef void (*pglogical_apply_update_fn) (PGLogicalRelation *rel,
PGLogicalTupleData *oldtup,
PGLogicalTupleData *newtup);
typedef void (*pglogical_apply_delete_fn) (PGLogicalRelation *rel,
PGLogicalTupleData *oldtup);
typedef bool (*pglogical_apply_can_mi_fn) (PGLogicalRelation *rel);
typedef void (*pglogical_apply_mi_add_tuple_fn) (PGLogicalRelation *rel,
PGLogicalTupleData *tup);
typedef void (*pglogical_apply_mi_finish_fn) (PGLogicalRelation *rel);
#endif /* PGLOGICAL_APPLY_H */