blob: 6c68dc43807e1c0897c2dc29df375c530394e98c (
plain) (
blame)
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
|
#pragma once
#include <yql/essentials/core/pg_settings/guc_settings.h>
#include <util/generic/string.h>
extern "C" {
#include "c.h"
#include "postgres.h"
#include "access/htup.h"
#include "datatype/timestamp.h"
#include "miscadmin.h"
#include "utils/palloc.h"
#include "nodes/memnodes.h"
#include "utils/typcache.h"
}
#undef TypeName
#undef Max
#undef bind
struct TMainContext {
MemoryContextData Data;
MemoryContextData ErrorData;
MemoryContext PrevCurrentMemoryContext = nullptr;
MemoryContext PrevErrorContext = nullptr;
MemoryContext PrevCacheMemoryContext = nullptr;
RecordCacheState CurrentRecordCacheState = { NULL, NULL, 0, 0, INVALID_TUPLEDESC_IDENTIFIER };
RecordCacheState PrevRecordCacheState;
TimestampTz StartTimestamp;
pg_stack_base_t PrevStackBase;
TString LastError;
TGUCSettings::TPtr GUCSettings;
HeapTuple CurrentDatabaseName = nullptr;
HeapTuple CurrentUserName = nullptr;
};
|