-
Notifications
You must be signed in to change notification settings - Fork 15
/
spock_apply_spi.h
34 lines (29 loc) · 1.14 KB
/
spock_apply_spi.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
/*-------------------------------------------------------------------------
*
* spock_apply_spi.h
* spock apply functions using SPI
*
* Copyright (c) 2022-2023, pgEdge, Inc.
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, The Regents of the University of California
*
*-------------------------------------------------------------------------
*/
#ifndef SPOCK_APPLY_SPI_H
#define SPOCK_APPLY_SPI_H
#include "spock_relcache.h"
#include "spock_proto_native.h"
extern void spock_apply_spi_begin(void);
extern void spock_apply_spi_commit(void);
extern void spock_apply_spi_insert(SpockRelation *rel,
SpockTupleData *newtup);
extern void spock_apply_spi_update(SpockRelation *rel,
SpockTupleData *oldtup,
SpockTupleData *newtup);
extern void spock_apply_spi_delete(SpockRelation *rel,
SpockTupleData *oldtup);
extern bool spock_apply_spi_can_mi(SpockRelation *rel);
extern void spock_apply_spi_mi_add_tuple(SpockRelation *rel,
SpockTupleData *tup);
extern void spock_apply_spi_mi_finish(SpockRelation *rel);
#endif /* SPOCK_APPLY_SPI_H */