8000 Add missing case for CustomScan. · postgrespro/postgres_cluster@f9e0255 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9e0255

Browse files< 8000 a class="prc-Button-ButtonBase-c50BI d-flex d-md-none prc-Button-IconButton-szpyj prc-Link-Link-85e08" data-component="IconButton" type="button" href="/postgrespro/postgres_cluster/tree/f9e0255c6fbedda50aae6aa7479f0c5a8f90b831" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R7qbab:-loading-announcement" aria-labelledby=":R1qbab:">
committed
Add missing case for CustomScan.
Per KaiGai Kohei. In passing improve formatting of some code added in commit 30d7ae3, because otherwise pgindent will make a mess of it.
1 parent f464042 commit f9e0255

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/backend/commands/explain.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,14 +1937,17 @@ show_hash_info(HashState *hashstate, ExplainState *es)
19371937
hashtable->nbatch_original, es);
19381938
ExplainPropertyLong("Peak Memory Usage", spacePeakKb, es);
19391939
}
1940-
else if ((hashtable->nbatch_original != hashtable->nbatch) ||
1941-
(hashtable->nbuckets_original != hashtable->nbuckets))
1940+
else if (hashtable->nbatch_original != hashtable->nbatch ||
1941+
hashtable->nbuckets_original != hashtable->nbuckets)
19421942
{
19431943
appendStringInfoSpaces(es->str, es->indent * 2);
19441944
appendStringInfo(es->str,
1945-
"Buckets: %d (originally %d) Batches: %d (originally %d) Memory Usage: %ldkB\n",
1946-
hashtable->nbuckets, hashtable->nbuckets_original,
1947-
hashtable->nbatch, hashtable->nbatch_original, spacePeakKb);
1945+
"Buckets: %d (originally %d) Batches: %d (originally %d) Memory Usage: %ldkB\n",
1946+
hashtable->nbuckets,
1947+
hashtable->nbuckets_original,
1948+
hashtable->nbatch,
1949+
hashtable->nbatch_original,
1950+
spacePeakKb);
19481951
}
19491952
else
19501953
{
@@ -2144,6 +2147,7 @@ ExplainTargetRel(Plan *plan, Index rti, ExplainState *es)
21442147
case T_BitmapHeapScan:
21452148
case T_TidScan:
21462149
case T_ForeignScan:
2150+
case T_CustomScan:
21472151
case T_ModifyTable:
21482152
/* Assert it's on a real relation */
21492153
Assert(rte->rtekind == RTE_RELATION);

0 commit comments

Comments
 (0)
0