PostgreSQL Source Code  git master
Tuplesortstate Struct Reference

Data Fields

TupSortStatus status
 
int nKeys
 
int sortopt
 
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)
 
bool haveDatum1
 
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
 
bool uniqueNullsNotDistinct
 
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 453 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 401 of file tuplesort.c.

◆ currentRun

int Tuplesortstate::currentRun

Definition at line 375 of file tuplesort.c.

◆ datumType

Oid Tuplesortstate::datumType

Definition at line 483 of file tuplesort.c.

◆ datumTypeLen

int Tuplesortstate::datumTypeLen

Definition at line 485 of file tuplesort.c.

◆ destTape

LogicalTape* Tuplesortstate::destTape

Definition at line 393 of file tuplesort.c.

◆ enforceUnique

bool Tuplesortstate::enforceUnique

Definition at line 471 of file tuplesort.c.

◆ eof_reached

bool Tuplesortstate::eof_reached

Definition at line 402 of file tuplesort.c.

◆ estate

EState* Tuplesortstate::estate

Definition at line 461 of file tuplesort.c.

◆ growmemtuples

bool Tuplesortstate::growmemtuples

Definition at line 325 of file tuplesort.c.

◆ haveDatum1

bool Tuplesortstate::haveDatum1

Definition at line 313 of file tuplesort.c.

◆ heapRel

Relation Tuplesortstate::heapRel

Definition at line 467 of file tuplesort.c.

◆ high_mask

uint32 Tuplesortstate::high_mask

Definition at line 475 of file tuplesort.c.

◆ indexInfo

IndexInfo* Tuplesortstate::indexInfo

Definition at line 460 of file tuplesort.c.

◆ indexRel

Relation Tuplesortstate::indexRel

Definition at line 468 of file tuplesort.c.

◆ inputTapes

LogicalTape** Tuplesortstate::inputTapes

Definition at line 385 of file tuplesort.c.

◆ isMaxSpaceDisk

bool Tuplesortstate::isMaxSpaceDisk

Definition at line 261 of file tuplesort.c.

◆ lastReturnedTuple

void* Tuplesortstate::lastReturnedTuple

Definition at line 369 of file tuplesort.c.

◆ low_mask

uint32 Tuplesortstate::low_mask

Definition at line 476 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 405 of file tuplesort.c.

◆ markpos_eof

bool Tuplesortstate::markpos_eof

Definition at line 407 of file tuplesort.c.

◆ markpos_offset

int Tuplesortstate::markpos_offset

Definition at line 406 of file tuplesort.c.

◆ max_buckets

uint32 Tuplesortstate::max_buckets

Definition at line 477 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 323 of file tuplesort.c.

◆ memtuples

SortTuple* Tuplesortstate::memtuples

Definition at line 322 of file tuplesort.c.

◆ memtupsize

int Tuplesortstate::memtupsize

Definition at line 324 of file tuplesort.c.

◆ nInputRuns

int Tuplesortstate::nInputRuns

Definition at line 387 of file tuplesort.c.

◆ nInputTapes

int Tuplesortstate::nInputTapes

Definition at line 386 of file tuplesort.c.

◆ nKeys

int Tuplesortstate::nKeys

Definition at line 248 of file tuplesort.c.

◆ nOutputRuns

int Tuplesortstate::nOutputRuns

Definition at line 391 of file tuplesort.c.

◆ nOutputTapes

int Tuplesortstate::nOutputTapes

Definition at line 390 of file tuplesort.c.

◆ nParticipants

int Tuplesortstate::nParticipants

Definition at line 427 of file tuplesort.c.

◆ onlyKey

SortSupport Tuplesortstate::onlyKey

Definition at line 445 of file tuplesort.c.

◆ outputTapes

LogicalTape** Tuplesortstate::outputTapes

Definition at line 389 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 400 of file tuplesort.c.

◆ ru_start

PGRUsage Tuplesortstate::ru_start

Definition at line 491 of file tuplesort.c.

◆ shared

Sharedsort* Tuplesortstate::shared

Definition at line 426 of file tuplesort.c.

◆ slabAllocatorUsed

bool Tuplesortstate::slabAllocatorUsed

Definition at line 354 of file tuplesort.c.

◆ slabFreeHead

SlabSlot* Tuplesortstate::slabFreeHead

Definition at line 358 of file tuplesort.c.

◆ slabMemoryBegin

char* Tuplesortstate::slabMemoryBegin

Definition at line 356 of file tuplesort.c.

◆ slabMemoryEnd

char* Tuplesortstate::slabMemoryEnd

Definition at line 357 of file tuplesort.c.

◆ sortcontext

MemoryContext Tuplesortstate::sortcontext

Definition at line 267 of file tuplesort.c.

◆ sortKeys

SortSupport Tuplesortstate::sortKeys

Definition at line 435 of file tuplesort.c.

◆ sortopt

int Tuplesortstate::sortopt

Definition at line 249 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 361 of file tuplesort.c.

◆ tapeset

LogicalTapeSet* Tuplesortstate::tapeset

Definition at line 269 of file tuplesort.c.

◆ tupDesc

TupleDesc Tuplesortstate::tupDesc

Definition at line 434 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.

◆ uniqueNullsNotDistinct

bool Tuplesortstate::uniqueNullsNotDistinct

Definition at line 472 of file tuplesort.c.

◆ worker

int Tuplesortstate::worker

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