← Back to Overview

src/backend/nodes/print.c

Coverage: 0/3 lines (0.0%)
Total Lines
3
modified
Covered
0
0.0%
Uncovered
3
100.0%
키보드 네비게이션
print_rt() lines 254-321
Modified Lines Coverage: 0/3 lines (0.0%)
LineHitsSourceCommit
254 - print_rt(const List *rtable) -
255 - { -
256 - const ListCell *l; -
257 - int i = 1; -
258 - -
259 - printf("resno\trefname \trelid\tinFromCl\n"); -
260 - printf("-----\t---------\t-----\t--------\n"); -
261 - foreach(l, rtable) -
262 - { -
263 - RangeTblEntry *rte = lfirst(l); -
264 - -
265 - switch (rte->rtekind) -
266 - { -
267 - case RTE_RELATION: -
268 - printf("%d\t%s\t%u\t%c", -
269 - i, rte->eref->aliasname, rte->relid, rte->relkind); -
270 - break; -
271 - case RTE_SUBQUERY: -
272 - printf("%d\t%s\t[subquery]", -
273 - i, rte->eref->aliasname); -
274 - break; -
275 - case RTE_JOIN: -
276 - printf("%d\t%s\t[join]", -
277 - i, rte->eref->aliasname); -
278 - break; -
279 - case RTE_FUNCTION: -
280 - printf("%d\t%s\t[rangefunction]", -
281 - i, rte->eref->aliasname); -
282 - break; -
283 - case RTE_TABLEFUNC: -
284 - printf("%d\t%s\t[table function]", -
285 - i, rte->eref->aliasname); -
286 - break; -
287 - case RTE_VALUES: -
288 - printf("%d\t%s\t[values list]", -
289 - i, rte->eref->aliasname); -
290 - break; -
291 - case RTE_CTE: -
292 - printf("%d\t%s\t[cte]", -
293 - i, rte->eref->aliasname); -
294 - break; -
295 - case RTE_NAMEDTUPLESTORE: -
296 - printf("%d\t%s\t[tuplestore]", -
297 - i, rte->eref->aliasname); -
298 - break; -
299 - case RTE_RESULT: -
300 - printf("%d\t%s\t[result]", -
301 - i, rte->eref->aliasname); -
302 - break; -
303 - case RTE_GROUP: -
304 - printf("%d\t%s\t[group]", -
305 - i, rte->eref->aliasname); -
306 - break; -
307 0 case RTE_GRAPH_TABLE: 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
308 0 printf("%d\t%s\t[graph table]", 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
309 - i, rte->eref->aliasname); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
310 0 break; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
311 - default: -
312 - printf("%d\t%s\t[unknown rtekind]", -
313 - i, rte->eref->aliasname); -
314 - } -
315 - -
316 - printf("\t%s\t%s\n", -
317 - (rte->inh ? "inh" : ""), -
318 - (rte->inFromCl ? "inFromCl" : "")); -
319 - i++; -
320 - } -
321 - } -