#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
|