File: pglogical_apply.h

package info (click to toggle)
pglogical 2.3.3-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,272 kB
  • sloc: ansic: 38,444; sql: 4,345; perl: 562; makefile: 186; sh: 77
file content (35 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download | duplicates (4)
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 */