PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
explain_dr.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * explain_dr.h
4 * prototypes for explain_dr.c
5 *
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994-5, Regents of the University of California
8 *
9 * src/include/commands/explain_dr.h
10 *
11 *-------------------------------------------------------------------------
12 */
13#ifndef EXPLAIN_DR_H
14#define EXPLAIN_DR_H
15
16#include "executor/instrument.h"
17#include "tcop/dest.h"
18
19/* avoid including explain_state.h here */
21
22/* Instrumentation data for EXPLAIN's SERIALIZE option */
23typedef struct SerializeMetrics
24{
25 uint64 bytesSent; /* # of bytes serialized */
26 instr_time timeSpent; /* time spent serializing */
27 BufferUsage bufferUsage; /* buffers accessed during serialization */
29
32
33#endif
uint64_t uint64
Definition: c.h:539
SerializeMetrics GetSerializationMetrics(DestReceiver *dest)
Definition: explain_dr.c:300
struct SerializeMetrics SerializeMetrics
DestReceiver * CreateExplainSerializeDestReceiver(ExplainState *es)
Definition: explain_dr.c:275
uint64 bytesSent
Definition: explain_dr.h:25
instr_time timeSpent
Definition: explain_dr.h:26
BufferUsage bufferUsage
Definition: explain_dr.h:27