]> granicus.if.org Git - postgresql/blobdiff - src/backend/nodes/print.c
Make some small planner API cleanups.
[postgresql] / src / backend / nodes / print.c
index a1f29416ab0e8c81c43270888005f5789d0d960c..6d6da5299faf0b38e2ab44a72941eadc28c87f71 100644 (file)
@@ -3,7 +3,7 @@
  * print.c
  *       various print routines (used mostly for debugging)
  *
- * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
@@ -21,8 +21,9 @@
 
 #include "access/printtup.h"
 #include "lib/stringinfo.h"
+#include "nodes/nodeFuncs.h"
 #include "nodes/print.h"
-#include "optimizer/clauses.h"
+#include "nodes/relation.h"
 #include "parser/parsetree.h"
 #include "utils/lsyscache.h"
 
@@ -279,6 +280,10 @@ print_rt(const List *rtable)
                                printf("%d\t%s\t[rangefunction]",
                                           i, rte->eref->aliasname);
                                break;
+                       case RTE_TABLEFUNC:
+                               printf("%d\t%s\t[table function]",
+                                          i, rte->eref->aliasname);
+                               break;
                        case RTE_VALUES:
                                printf("%d\t%s\t[values list]",
                                           i, rte->eref->aliasname);
@@ -287,6 +292,14 @@ print_rt(const List *rtable)
                                printf("%d\t%s\t[cte]",
                                           i, rte->eref->aliasname);
                                break;
+                       case RTE_NAMEDTUPLESTORE:
+                               printf("%d\t%s\t[tuplestore]",
+                                          i, rte->eref->aliasname);
+                               break;
+                       case RTE_RESULT:
+                               printf("%d\t%s\t[result]",
+                                          i, rte->eref->aliasname);
+                               break;
                        default:
                                printf("%d\t%s\t[unknown rtekind]",
                                           i, rte->eref->aliasname);