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
 
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 230 of file tuplesort.c.

Field Documentation

◆ abbrevNext

int64 Tuplesortstate::abbrevNext

◆ activeTapes

int Tuplesortstate::activeTapes

Definition at line 371 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

Definition at line 237 of file tuplesort.c.

Referenced by sort_bounded_heap(), tuplesort_begin_common(), and tuplesort_get_stats().

◆ comparetup

◆ copytup

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

◆ current

◆ currentRun

int Tuplesortstate::currentRun

◆ datumType

Oid Tuplesortstate::datumType

Definition at line 455 of file tuplesort.c.

Referenced by tuplesort_begin_datum().

◆ datumTypeLen

int Tuplesortstate::datumTypeLen

◆ destTape

int Tuplesortstate::destTape

◆ enforceUnique

bool Tuplesortstate::enforceUnique

Definition at line 444 of file tuplesort.c.

Referenced by comparetup_index_btree(), and tuplesort_begin_index_btree().

◆ eof_reached

◆ estate

EState* Tuplesortstate::estate

Definition at line 434 of file tuplesort.c.

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

◆ growmemtuples

bool Tuplesortstate::growmemtuples

Definition at line 296 of file tuplesort.c.

Referenced by grow_memtuples(), and tuplesort_begin_common().

◆ heapRel

Relation Tuplesortstate::heapRel

◆ high_mask

uint32 Tuplesortstate::high_mask

Definition at line 447 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ indexInfo

IndexInfo* Tuplesortstate::indexInfo

◆ indexRel

◆ lastReturnedTuple

void* Tuplesortstate::lastReturnedTuple

Definition at line 340 of file tuplesort.c.

Referenced by tuplesort_gettuple_common().

◆ Level

int Tuplesortstate::Level

Definition at line 365 of file tuplesort.c.

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

◆ low_mask

uint32 Tuplesortstate::low_mask

Definition at line 448 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ 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 449 of file tuplesort.c.

Referenced by comparetup_index_hash(), and tuplesort_begin_index_hash().

◆ maxTapes

int Tuplesortstate::maxTapes

Definition at line 242 of file tuplesort.c.

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

◆ memtupcount

◆ memtuples

◆ memtupsize

◆ mergeactive

bool* Tuplesortstate::mergeactive

Definition at line 358 of file tuplesort.c.

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

◆ nKeys

◆ nParticipants

int Tuplesortstate::nParticipants

Definition at line 404 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 332 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 329 of file tuplesort.c.

Referenced by init_slab_allocator(), and readtup_alloc().

◆ slabMemoryBegin

char* Tuplesortstate::slabMemoryBegin

Definition at line 327 of file tuplesort.c.

Referenced by init_slab_allocator().

◆ slabMemoryEnd

char* Tuplesortstate::slabMemoryEnd

Definition at line 328 of file tuplesort.c.

Referenced by init_slab_allocator().

◆ sortcontext

◆ sortKeys

◆ status

◆ tapeRange

int Tuplesortstate::tapeRange

◆ tapeset

◆ tp_dummy

int* Tuplesortstate::tp_dummy

◆ tp_fib

int* Tuplesortstate::tp_fib

Definition at line 367 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: