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
 
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, LogicalTape *tape, SortTuple *stup)
 
void(* readtup )(Tuplesortstate *state, SortTuple *stup, LogicalTape *tape, unsigned int len)
 
SortTuplememtuples
 
int memtupcount
 
int memtupsize
 
bool growmemtuples
 
bool slabAllocatorUsed
 
char * slabMemoryBegin
 
char * slabMemoryEnd
 
SlabSlotslabFreeHead
 
size_t tape_buffer_mem
 
void * lastReturnedTuple
 
int currentRun
 
LogicalTape ** inputTapes
 
int nInputTapes
 
int nInputRuns
 
LogicalTape ** outputTapes
 
int nOutputTapes
 
int nOutputRuns
 
LogicalTapedestTape
 
LogicalTaperesult_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 245 of file tuplesort.c.

Field Documentation

◆ abbrevNext

int64 Tuplesortstate::abbrevNext

Definition at line 443 of file tuplesort.c.

◆ allowedMem

int64 Tuplesortstate::allowedMem

Definition at line 256 of file tuplesort.c.

◆ availMem

int64 Tuplesortstate::availMem

Definition at line 255 of file tuplesort.c.

◆ bound

int Tuplesortstate::bound

Definition at line 253 of file tuplesort.c.

◆ bounded

bool Tuplesortstate::bounded

Definition at line 250 of file tuplesort.c.

◆ boundUsed

bool Tuplesortstate::boundUsed

Definition at line 252 of file tuplesort.c.

◆ comparetup

SortTupleComparator Tuplesortstate::comparetup

Definition at line 280 of file tuplesort.c.

◆ copytup

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

Definition at line 288 of file tuplesort.c.

◆ current

int Tuplesortstate::current

Definition at line 395 of file tuplesort.c.

◆ currentRun

int Tuplesortstate::currentRun

Definition at line 369 of file tuplesort.c.

◆ datumType

Oid Tuplesortstate::datumType

Definition at line 472 of file tuplesort.c.

◆ datumTypeLen

int Tuplesortstate::datumTypeLen

Definition at line 474 of file tuplesort.c.

◆ destTape

LogicalTape* Tuplesortstate::destTape

Definition at line 387 of file tuplesort.c.

◆ enforceUnique

bool Tuplesortstate::enforceUnique

Definition at line 461 of file tuplesort.c.

◆ eof_reached

bool Tuplesortstate::eof_reached

Definition at line 396 of file tuplesort.c.

◆ estate

EState* Tuplesortstate::estate

Definition at line 451 of file tuplesort.c.

◆ growmemtuples

bool Tuplesortstate::growmemtuples

Definition at line 319 of file tuplesort.c.

◆ heapRel

Relation Tuplesortstate::heapRel

Definition at line 457 of file tuplesort.c.

◆ high_mask

uint32 Tuplesortstate::high_mask

Definition at line 464 of file tuplesort.c.

◆ indexInfo

IndexInfo* Tuplesortstate::indexInfo

Definition at line 450 of file tuplesort.c.

◆ indexRel

Relation Tuplesortstate::indexRel

Definition at line 458 of file tuplesort.c.

◆ inputTapes

LogicalTape** Tuplesortstate::inputTapes

Definition at line 379 of file tuplesort.c.

◆ isMaxSpaceDisk

bool Tuplesortstate::isMaxSpaceDisk

Definition at line 261 of file tuplesort.c.

◆ lastReturnedTuple

void* Tuplesortstate::lastReturnedTuple

Definition at line 363 of file tuplesort.c.

◆ low_mask

uint32 Tuplesortstate::low_mask

Definition at line 465 of file tuplesort.c.

◆ maincontext

MemoryContext Tuplesortstate::maincontext

Definition at line 265 of file tuplesort.c.

◆ markpos_block

long Tuplesortstate::markpos_block

Definition at line 399 of file tuplesort.c.

◆ markpos_eof

bool Tuplesortstate::markpos_eof

Definition at line 401 of file tuplesort.c.

◆ markpos_offset

int Tuplesortstate::markpos_offset

Definition at line 400 of file tuplesort.c.

◆ max_buckets

uint32 Tuplesortstate::max_buckets

Definition at line 466 of file tuplesort.c.

◆ maxSpace

int64 Tuplesortstate::maxSpace

Definition at line 259 of file tuplesort.c.

◆ maxSpaceStatus

TupSortStatus Tuplesortstate::maxSpaceStatus

Definition at line 264 of file tuplesort.c.

◆ maxTapes

int Tuplesortstate::maxTapes

Definition at line 257 of file tuplesort.c.

◆ memtupcount

int Tuplesortstate::memtupcount

Definition at line 317 of file tuplesort.c.

◆ memtuples

SortTuple* Tuplesortstate::memtuples

Definition at line 316 of file tuplesort.c.

◆ memtupsize

int Tuplesortstate::memtupsize

Definition at line 318 of file tuplesort.c.

◆ nInputRuns

int Tuplesortstate::nInputRuns

Definition at line 381 of file tuplesort.c.

◆ nInputTapes

int Tuplesortstate::nInputTapes

Definition at line 380 of file tuplesort.c.

◆ nKeys

int Tuplesortstate::nKeys

Definition at line 248 of file tuplesort.c.

◆ nOutputRuns

int Tuplesortstate::nOutputRuns

Definition at line 385 of file tuplesort.c.

◆ nOutputTapes

int Tuplesortstate::nOutputTapes

Definition at line 384 of file tuplesort.c.

◆ nParticipants

int Tuplesortstate::nParticipants

Definition at line 421 of file tuplesort.c.

◆ onlyKey

SortSupport Tuplesortstate::onlyKey

Definition at line 435 of file tuplesort.c.

◆ outputTapes

LogicalTape** Tuplesortstate::outputTapes

Definition at line 383 of file tuplesort.c.

◆ randomAccess

bool Tuplesortstate::randomAccess

Definition at line 249 of file tuplesort.c.

◆ readtup

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

Definition at line 306 of file tuplesort.c.

◆ result_tape

LogicalTape* Tuplesortstate::result_tape

Definition at line 394 of file tuplesort.c.

◆ ru_start

PGRUsage Tuplesortstate::ru_start

Definition at line 480 of file tuplesort.c.

◆ shared

Sharedsort* Tuplesortstate::shared

Definition at line 420 of file tuplesort.c.

◆ slabAllocatorUsed

bool Tuplesortstate::slabAllocatorUsed

Definition at line 348 of file tuplesort.c.

◆ slabFreeHead

SlabSlot* Tuplesortstate::slabFreeHead

Definition at line 352 of file tuplesort.c.

◆ slabMemoryBegin

char* Tuplesortstate::slabMemoryBegin

Definition at line 350 of file tuplesort.c.

◆ slabMemoryEnd

char* Tuplesortstate::slabMemoryEnd

Definition at line 351 of file tuplesort.c.

◆ sortcontext

MemoryContext Tuplesortstate::sortcontext

Definition at line 267 of file tuplesort.c.

◆ sortKeys

SortSupport Tuplesortstate::sortKeys

Definition at line 429 of file tuplesort.c.

◆ status

TupSortStatus Tuplesortstate::status

Definition at line 247 of file tuplesort.c.

◆ tape_buffer_mem

size_t Tuplesortstate::tape_buffer_mem

Definition at line 355 of file tuplesort.c.

◆ tapeset

LogicalTapeSet* Tuplesortstate::tapeset

Definition at line 269 of file tuplesort.c.

◆ tupDesc

TupleDesc Tuplesortstate::tupDesc

Definition at line 428 of file tuplesort.c.

◆ tuplecontext

MemoryContext Tuplesortstate::tuplecontext

Definition at line 268 of file tuplesort.c.

◆ tuples

bool Tuplesortstate::tuples

Definition at line 254 of file tuplesort.c.

◆ worker

int Tuplesortstate::worker

Definition at line 419 of file tuplesort.c.

◆ writetup

void(* Tuplesortstate::writetup) (Tuplesortstate *state, LogicalTape *tape, SortTuple *stup)

Definition at line 298 of file tuplesort.c.


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