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
19struct ExplainState; /* avoid including explain.h here */
20
21/* Instrumentation data for EXPLAIN's SERIALIZE option */
22typedef struct SerializeMetrics
23{
24 uint64 bytesSent; /* # of bytes serialized */
25 instr_time timeSpent; /* time spent serializing */
26 BufferUsage bufferUsage; /* buffers accessed during serialization */
28
31
32#endif
uint64_t uint64
Definition: c.h:503
SerializeMetrics GetSerializationMetrics(DestReceiver *dest)
Definition: explain_dr.c:298
struct SerializeMetrics SerializeMetrics
DestReceiver * CreateExplainSerializeDestReceiver(struct ExplainState *es)
Definition: explain_dr.c:273
uint64 bytesSent
Definition: explain_dr.h:24
instr_time timeSpent
Definition: explain_dr.h:25
BufferUsage bufferUsage
Definition: explain_dr.h:26