MCPcopy Create free account
hub / github.com/apache/cloudberry / postgresExplainDirectModify

Function postgresExplainDirectModify

contrib/postgres_fdw/postgres_fdw.c:2956–2968  ·  view source on GitHub ↗

* postgresExplainDirectModify * Produce extra output for EXPLAIN of a ForeignScan that modifies a * foreign table directly */

Source from the content-addressed store, hash-verified

2954 * foreign table directly
2955 */
2956static void
2957postgresExplainDirectModify(ForeignScanState *node, ExplainState *es)
2958{
2959 List *fdw_private;
2960 char *sql;
2961
2962 if (es->verbose)
2963 {
2964 fdw_private = ((ForeignScan *) node->ss.ps.plan)->fdw_private;
2965 sql = strVal(list_nth(fdw_private, FdwDirectModifyPrivateUpdateSql));
2966 ExplainPropertyText("Remote SQL", sql, es);
2967 }
2968}
2969
2970/*
2971 * postgresExecForeignTruncate

Callers

nothing calls this directly

Calls 2

list_nthFunction · 0.85
ExplainPropertyTextFunction · 0.85

Tested by

no test coverage detected