-
Notifications
You must be signed in to change notification settings - Fork 15
/
spock_apply_heap.h
34 lines (29 loc) · 1.13 KB
/
spock_apply_heap.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_heap.h
* spock apply functions using heap api
*
* 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_HEAP_H
#define SPOCK_APPLY_HEAP_H
#include "spock_relcache.h"
#include "spock_proto_native.h"
extern void spock_apply_heap_begin(void);
extern void spock_apply_heap_commit(void);
extern void spock_apply_heap_insert(SpockRelation *rel,
SpockTupleData *newtup);
extern void spock_apply_heap_update(SpockRelation *rel,
SpockTupleData *oldtup,
SpockTupleData *newtup);
extern void spock_apply_heap_delete(SpockRelation *rel,
SpockTupleData *oldtup);
bool spock_apply_heap_can_mi(SpockRelation *rel);
void spock_apply_heap_mi_add_tuple(SpockRelation *rel,
SpockTupleData *tup);
void spock_apply_heap_mi_finish(SpockRelation *rel);
#endif /* SPOCK_APPLY_HEAP_H */