PostgreSQL Source Code  git master
Tuplesortstate Struct Reference

Data Fields

TupSortStatus status
 
int nKeys
 
bool randomAccess
 
bool bounded
 
bool boundUsed
 
int bound
 
bool tuples
 
int64 availMem
 
int64 allowedMem
 
int maxTapes
 
int tapeRange
 
int64 maxSpace
 
bool isMaxSpaceDisk
 
TupSortStatus maxSpaceStatus
 
MemoryContext maincontext
 
MemoryContext sortcontext
 
MemoryContext tuplecontext
 
LogicalTapeSettapeset
 
SortTupleComparator comparetup
 
void(* copytup )(Tuplesortstate *state, SortTuple *stup, void *tup)
 
void(* writetup )(Tuplesortstate *state, int tapenum, SortTuple *stup)
 
void(* readtup )(Tuplesortstate *state, SortTuple *stup, int tapenum, unsigned int len)
 
SortTuplememtuples
 
int memtupcount
 
int memtupsize
 
bool growmemtuples
 
bool slabAllocatorUsed
 
char * slabMemoryBegin
 
char * slabMemoryEnd
 
SlabSlotslabFreeHead
 
size_t read_buffer_size
 
void * lastReturnedTuple
 
int currentRun
 
boolmergeactive
 
int Level
 
int destTape
 
int * tp_fib
 
int * tp_runs
 
int * tp_dummy
 
int * tp_tapenum
 
int activeTapes
 
int result_tape
 
int current
 
bool eof_reached
 
long markpos_block
 
int markpos_offset
 
bool markpos_eof
 
int worker
 
Sharedsortshared
 
int nParticipants
 
TupleDesc tupDesc
 
SortSupport sortKeys
 
SortSupport onlyKey
 
int64 abbrevNext
 
IndexInfoindexInfo
 
EStateestate
 
Relation heapRel
 
Relation indexRel
 
bool enforceUnique
 
uint32 high_mask
 
uint32 low_mask
 
uint32 max_buckets
 
Oid datumType
 
int datumTypeLen
 
PGRUsage ru_start
 

Detailed Description

Definition at line 240 of file tuplesort.c.

Field Documentation

◆ abbrevNext

int64 Tuplesortstate::abbrevNext

◆ activeTapes

int Tuplesortstate::activeTapes

Definition at line 389 of file tuplesort.c.

Referenced by beginmerge(), mergeonerun(), and tuplesort_performsort().

◆ allowedMem

int64 Tuplesortstate::allowedMem

◆ availMem

int64 Tuplesortstate::availMem

◆ bound

◆ bounded

◆ boundUsed

bool Tuplesortstate::boundUsed

◆ comparetup

◆ copytup

void(* Tuplesortstate::copytup) (Tuplesortstate *state, SortTuple *stup, void *tup)

◆ current

◆ currentRun

int Tuplesortstate::currentRun

◆ datumType

Oid Tuplesortstate::datumType

Definition at line 473 of file tuplesort.c.

Referenced by tuplesort_begin_datum().

◆ datumTypeLen

int Tuplesortstate::datumTypeLen

◆ destTape

int Tuplesortstate::destTape

◆ enforceUnique

bool Tuplesortstate::enforceUnique

Definition at line 462 of file tuplesort.c.

Referenced by comparetup_index_btree(), and tuplesort_begin_index_btree().

◆ eof_reached

◆ estate

EState* Tuplesortstate::estate

Definition at line 452 of file tuplesort.c.

Referenced by comparetup_cluster(), tuplesort_begin_cluster(), and tuplesort_free().

◆ growmemtuples

bool Tuplesortstate::growmemtuples

Definition at line 314 of file tuplesort.c.

Referenced by grow_memtuples(), and tuplesort_begin_batch().

◆ heapRel

Relation Tuplesortstate::heapRel

◆ high_mask

uint32 Tuplesortstate::high_mask

Definition at line 465 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ indexInfo

IndexInfo* Tuplesortstate::indexInfo

◆ indexRel

◆ isMaxSpaceDisk

bool Tuplesortstate::isMaxSpaceDisk

Definition at line 256 of file tuplesort.c.

Referenced by tuplesort_get_stats(), and tuplesort_updatemax().

◆ lastReturnedTuple

void* Tuplesortstate::lastReturnedTuple

Definition at line 358 of file tuplesort.c.

Referenced by tuplesort_gettuple_common(), and tuplesort_reset().

◆ Level

int Tuplesortstate::Level

Definition at line 383 of file tuplesort.c.

Referenced by inittapes(), leader_takeover_tapes(), mergeruns(), and selectnewtape().

◆ low_mask

uint32 Tuplesortstate::low_mask

Definition at line 466 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ maincontext

◆ markpos_block

long Tuplesortstate::markpos_block

◆ markpos_eof

bool Tuplesortstate::markpos_eof

◆ markpos_offset

int Tuplesortstate::markpos_offset

◆ max_buckets

uint32 Tuplesortstate::max_buckets

Definition at line 467 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ maxSpace

int64 Tuplesortstate::maxSpace

Definition at line 254 of file tuplesort.c.

Referenced by tuplesort_get_stats(), and tuplesort_updatemax().

◆ maxSpaceStatus

TupSortStatus Tuplesortstate::maxSpaceStatus

Definition at line 259 of file tuplesort.c.

Referenced by tuplesort_get_stats(), and tuplesort_updatemax().

◆ maxTapes

int Tuplesortstate::maxTapes

Definition at line 252 of file tuplesort.c.

Referenced by beginmerge(), inittapestate(), leader_takeover_tapes(), and mergeruns().

◆ memtupcount

◆ memtuples

◆ memtupsize

◆ mergeactive

bool* Tuplesortstate::mergeactive

Definition at line 376 of file tuplesort.c.

Referenced by beginmerge(), inittapestate(), and mergereadnext().

◆ nKeys

◆ nParticipants

int Tuplesortstate::nParticipants

Definition at line 422 of file tuplesort.c.

Referenced by leader_takeover_tapes(), and tuplesort_begin_common().

◆ onlyKey

SortSupport Tuplesortstate::onlyKey

◆ randomAccess

◆ read_buffer_size

size_t Tuplesortstate::read_buffer_size

Definition at line 350 of file tuplesort.c.

Referenced by mergeruns().

◆ readtup

void(* Tuplesortstate::readtup) (Tuplesortstate *state, SortTuple *stup, int tapenum, unsigned int len)

◆ result_tape

◆ ru_start

◆ shared

◆ slabAllocatorUsed

◆ slabFreeHead

SlabSlot* Tuplesortstate::slabFreeHead

Definition at line 347 of file tuplesort.c.

Referenced by init_slab_allocator(), readtup_alloc(), and tuplesort_reset().

◆ slabMemoryBegin

char* Tuplesortstate::slabMemoryBegin

Definition at line 345 of file tuplesort.c.

Referenced by init_slab_allocator(), and tuplesort_reset().

◆ slabMemoryEnd

char* Tuplesortstate::slabMemoryEnd

Definition at line 346 of file tuplesort.c.

Referenced by init_slab_allocator(), and tuplesort_reset().

◆ sortcontext

◆ sortKeys

◆ status

◆ tapeRange

int Tuplesortstate::tapeRange

◆ tapeset

◆ tp_dummy

int* Tuplesortstate::tp_dummy

◆ tp_fib

int* Tuplesortstate::tp_fib

Definition at line 385 of file tuplesort.c.

Referenced by inittapes(), inittapestate(), leader_takeover_tapes(), and selectnewtape().

◆ tp_runs

int* Tuplesortstate::tp_runs

◆ tp_tapenum

int* Tuplesortstate::tp_tapenum

◆ tupDesc

◆ tuplecontext

◆ tuples

◆ worker

◆ writetup

void(* Tuplesortstate::writetup) (Tuplesortstate *state, int tapenum, SortTuple *stup)

The documentation for this struct was generated from the following file: