Skip to content

Commit 66917bf

Browse files
committed
Make ExplainOpenGroup and ExplainCloseGroup public.
Extensions with custom plan nodes might like to use these in their EXPLAIN output. Hadi Moshayedi Discussion: https://postgr.es/m/CA+_kT_dU-rHCN0u6pjA6bN5CZniMfD=-wVqPY4QLrKUY_uJq5w@mail.gmail.com
1 parent 4bd1994 commit 66917bf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/backend/commands/explain.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ static void ExplainCustomChildren(CustomScanState *css,
124124
List *ancestors, ExplainState *es);
125125
static void ExplainProperty(const char *qlabel, const char *value,
126126
bool numeric, ExplainState *es);
127-
static void ExplainOpenGroup(const char *objtype, const char *labelname,
128-
bool labeled, ExplainState *es);
129-
static void ExplainCloseGroup(const char *objtype, const char *labelname,
130-
bool labeled, ExplainState *es);
131127
static void ExplainDummyGroup(const char *objtype, const char *labelname,
132128
ExplainState *es);
133129
static void ExplainXMLTag(const char *tagname, int flags, ExplainState *es);
@@ -3277,7 +3273,7 @@ ExplainPropertyBool(const char *qlabel, bool value, ExplainState *es)
32773273
* If labeled is true, the group members will be labeled properties,
32783274
* while if it's false, they'll be unlabeled objects.
32793275
*/
3280-
static void
3276+
void
32813277
ExplainOpenGroup(const char *objtype, const char *labelname,
32823278
bool labeled, ExplainState *es)
32833279
{
@@ -3340,7 +3336,7 @@ ExplainOpenGroup(const char *objtype, const char *labelname,
33403336
* Close a group of related objects.
33413337
* Parameters must match the corresponding ExplainOpenGroup call.
33423338
*/
3343-
static void
3339+
void
33443340
ExplainCloseGroup(const char *objtype, const char *labelname,
33453341
bool labeled, ExplainState *es)
33463342
{

src/include/commands/explain.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,9 @@ extern void ExplainPropertyFloat(const char *qlabel, double value, int ndigits,
101101
extern void ExplainPropertyBool(const char *qlabel, bool value,
102102
ExplainState *es);
103103

104+
extern void ExplainOpenGroup(const char *objtype, const char *labelname,
105+
bool labeled, ExplainState *es);
106+
extern void ExplainCloseGroup(const char *objtype, const char *labelname,
107+
bool labeled, ExplainState *es);
108+
104109
#endif /* EXPLAIN_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy