Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
48
#ifndef TEMPCAT_H
#define TEMPCAT_H
 
#include "access/htup.h"
#include "access/skey.h"
#include "utils/rel.h"
 
typedef struct TempCatalogScan TempCatalogScan;
 
extern PGDLLIMPORT bool enable_temp_memory_catalog;
 
extern void temp_catalog_init(void);
 
extern bool temp_catalog_tid_is_memory(const ItemPointerData *tid);
 
extern void temp_catalog_begin_write_scope(void);
extern void temp_catalog_end_write_scope(void);
extern bool temp_catalog_write_scope_active(void);
 
extern void temp_catalog_insert(Relation relation, HeapTuple tuple);
 
extern void temp_catalog_update(Relation relation,
                                const ItemPointerData *tid,
                                HeapTuple tuple);
 
extern void temp_catalog_update_inplace(Relation relation,
                                        const ItemPointerData *tid,
                                        HeapTuple tuple);
 
extern void temp_catalog_delete(Relation relation,
                                const ItemPointerData *tid);
 
extern TempCatalogScan *temp_catalog_beginscan(Relation relation,
                                                 int nkeys,
                                                 ScanKey keys);
 
extern HeapTuple temp_catalog_getnext(TempCatalogScan *scan);
 
extern void temp_catalog_endscan(TempCatalogScan *scan);
 
extern bool temp_catalog_relation_has_tuples(Oid catalog_relid);
 
extern bool temp_catalog_tuple_exists(Relation relation,
                                      const ItemPointerData *tid);
 
extern bool temp_catalog_object_is_memory(Oid relid);
 
#endif