|
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 445 of file printtup.c.
References i, TupleDescData::natts, printatt(), printf, and TupleDescAttr().
| bool debugtup | ( | TupleTableSlot * | slot, |
| DestReceiver * | self | ||
| ) |
Definition at line 463 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 72 of file printtup.c.
References DR_printtup::attrinfo, DR_printtup::buf, StringInfoData::data, generate_unaccent_rules::dest, DestRemote, _DestReceiver::mydest, DR_printtup::myinfo, DR_printtup::nattrs, palloc0(), printtup(), printtup_destroy(), printtup_shutdown(), printtup_startup(), DR_printtup::pub, _DestReceiver::rDestroy, _DestReceiver::receiveSlot, _DestReceiver::rShutdown, _DestReceiver::rStartup, DR_printtup::sendDescrip, and DR_printtup::tmpcontext.
Referenced by CreateDestReceiver().
| void SendRowDescriptionMessage | ( | StringInfo | buf, |
| TupleDesc | typeinfo, | ||
| List * | targetlist, | ||
| int16 * | formats | ||
| ) |
Definition at line 167 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 101 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 2123 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 2171 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.