1/*-------------------------------------------------------------------------
2 *
3 * printtup.h
4 *
5 *
6 *
7 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/access/printtup.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef PRINTTUP_H
15#define PRINTTUP_H
16
17#include "utils/portal.h"
18
19extern DestReceiver *printtup_create_DR(CommandDest dest);
20
21extern void SetRemoteDestReceiverParams(DestReceiver *self, Portal portal);
22
23extern void SendRowDescriptionMessage(StringInfo buf,
24 TupleDesc typeinfo, List *targetlist, int16 *formats);
25
26extern void debugStartup(DestReceiver *self, int operation,
27 TupleDesc typeinfo);
28extern bool debugtup(TupleTableSlot *slot, DestReceiver *self);
29
30/* XXX these are really in executor/spi.c */
31extern void spi_dest_startup(DestReceiver *self, int operation,
32 TupleDesc typeinfo);
33extern bool spi_printtup(TupleTableSlot *slot, DestReceiver *self);
34
35#endif /* PRINTTUP_H */
36