Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66917bf

Browse files
committed
Make ExplainOpenGroup and ExplainCloseGroup public.
Extensions with custom plan nodes might like to use these in theirEXPLAIN output.Hadi MoshayediDiscussion:https://postgr.es/m/CA+_kT_dU-rHCN0u6pjA6bN5CZniMfD=-wVqPY4QLrKUY_uJq5w@mail.gmail.com
1 parent4bd1994 commit66917bf

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
staticvoidExplainProperty(constchar*qlabel,constchar*value,
126126
boolnumeric,ExplainState*es);
127-
staticvoidExplainOpenGroup(constchar*objtype,constchar*labelname,
128-
boollabeled,ExplainState*es);
129-
staticvoidExplainCloseGroup(constchar*objtype,constchar*labelname,
130-
boollabeled,ExplainState*es);
131127
staticvoidExplainDummyGroup(constchar*objtype,constchar*labelname,
132128
ExplainState*es);
133129
staticvoidExplainXMLTag(constchar*tagname,intflags,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-
staticvoid
3276+
void
32813277
ExplainOpenGroup(constchar*objtype,constchar*labelname,
32823278
boollabeled,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-
staticvoid
3339+
void
33443340
ExplainCloseGroup(constchar*objtype,constchar*labelname,
33453341
boollabeled,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
externvoidExplainPropertyBool(constchar*qlabel,boolvalue,
102102
ExplainState*es);
103103

104+
externvoidExplainOpenGroup(constchar*objtype,constchar*labelname,
105+
boollabeled,ExplainState*es);
106+
externvoidExplainCloseGroup(constchar*objtype,constchar*labelname,
107+
boollabeled,ExplainState*es);
108+
104109
#endif/* EXPLAIN_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp