PostgreSQL Source Code
git master
|
#include "utils/portal.h"
Go to the source code of this file.
Functions | |
DestReceiver * | printtup_create_DR (CommandDest dest) |
void | SetRemoteDestReceiverParams (DestReceiver *self, Portal portal) |
void | SendRowDescriptionMessage (StringInfo buf, TupleDesc typeinfo, List *targetlist, int16 *formats) |
void | debugStartup (DestReceiver *self, int operation, TupleDesc typeinfo) |
bool | debugtup (TupleTableSlot *slot, DestReceiver *self) |
void | spi_dest_startup (DestReceiver *self, int operation, TupleDesc typeinfo) |
bool | spi_printtup (TupleTableSlot *slot, DestReceiver *self) |
void debugStartup | ( | DestReceiver * | self, |
int | operation, | ||
TupleDesc | typeinfo | ||
) |
Definition at line 444 of file printtup.c.
References i, TupleDescData::natts, printatt(), printf, and TupleDescAttr.
bool debugtup | ( | TupleTableSlot * | slot, |
DestReceiver * | self | ||
) |
Definition at line 462 of file printtup.c.
References getTypeOutputInfo(), i, TupleDescData::natts, OidOutputFunctionCall(), printatt(), printf, slot_getattr(), TupleTableSlot::tts_tupleDescriptor, TupleDescAttr, and value.
Referenced by print_slot().
DestReceiver* printtup_create_DR | ( | CommandDest | dest | ) |
Definition at line 71 of file printtup.c.
References generate_unaccent_rules::dest, DestRemote, palloc0(), printtup(), printtup_destroy(), printtup_shutdown(), and printtup_startup().
Referenced by CreateDestReceiver().
void SendRowDescriptionMessage | ( | StringInfo | buf, |
TupleDesc | typeinfo, | ||
List * | targetlist, | ||
int16 * | formats | ||
) |
Definition at line 166 of file printtup.c.
References buf, enlargeStringInfo(), format, getBaseTypeAndTypmod(), i, lfirst, list_head(), lnext(), MAX_CONVERSION_GROWTH, NAMEDATALEN, NameStr, TupleDescData::natts, pq_beginmessage_reuse(), pq_endmessage_reuse(), pq_sendint16(), pq_writeint16(), pq_writeint32(), pq_writestring(), PqMsg_RowDescription, and TupleDescAttr.
Referenced by exec_describe_portal_message(), exec_describe_statement_message(), and printtup_startup().
void SetRemoteDestReceiverParams | ( | DestReceiver * | self, |
Portal | portal | ||
) |
Definition at line 100 of file printtup.c.
References Assert, DestRemote, DestRemoteExecute, _DestReceiver::mydest, DR_printtup::portal, and DR_printtup::pub.
Referenced by exec_execute_message(), and exec_simple_query().
void spi_dest_startup | ( | DestReceiver * | self, |
int | operation, | ||
TupleDesc | typeinfo | ||
) |
Definition at line 2120 of file spi.c.
References _SPI_current, _SPI_procmem(), SPITupleTable::alloced, ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, CreateTupleDescCopy(), CurrentMemoryContext, elog, ERROR, GetCurrentSubTransactionId(), MemoryContextSwitchTo(), SPITupleTable::next, SPITupleTable::numvals, palloc(), palloc0(), slist_push_head(), SPITupleTable::subid, SPITupleTable::tupdesc, SPITupleTable::tuptabcxt, _SPI_connection::tuptable, _SPI_connection::tuptables, and SPITupleTable::vals.
bool spi_printtup | ( | TupleTableSlot * | slot, |
DestReceiver * | self | ||
) |
Definition at line 2168 of file spi.c.
References _SPI_current, SPITupleTable::alloced, elog, ERROR, ExecCopySlotHeapTuple(), MemoryContextSwitchTo(), SPITupleTable::numvals, repalloc_huge(), SPITupleTable::tuptabcxt, _SPI_connection::tuptable, and SPITupleTable::vals.