summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2022-07-09 17:58:06 +0000
committerTom Lane2022-07-09 17:58:06 +0000
commit8c73c11a0d39049de2c1f400d8765a0eb21f5228 (patch)
tree82eef73cd5a8f19273ef394336caf8f43cda0483
parentb4f79d278f2a78a65ff020b4e8cfa46a2587091d (diff)
Mark Scan as an abstract node type, too.
On further review, this one is never instantiated either.
-rw-r--r--src/include/nodes/plannodes.h4
-rw-r--r--src/test/modules/test_oat_hooks/test_oat_hooks.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/include/nodes/plannodes.h b/src/include/nodes/plannodes.h
index 6ed765cbe4..dca2a21e7a 100644
--- a/src/include/nodes/plannodes.h
+++ b/src/include/nodes/plannodes.h
@@ -371,10 +371,14 @@ typedef struct BitmapOr
/*
* ==========
* Scan nodes
+ *
+ * Scan is an abstract type that all relation scan plan types inherit from.
* ==========
*/
typedef struct Scan
{
+ pg_node_attr(abstract)
+
Plan plan;
Index scanrelid; /* relid is index into the range table */
} Scan;
diff --git a/src/test/modules/test_oat_hooks/test_oat_hooks.c b/src/test/modules/test_oat_hooks/test_oat_hooks.c
index c9869b21fd..0ad77e743d 100644
--- a/src/test/modules/test_oat_hooks/test_oat_hooks.c
+++ b/src/test/modules/test_oat_hooks/test_oat_hooks.c
@@ -492,9 +492,6 @@ nodetag_to_string(NodeTag tag)
case T_BitmapOr:
return "BitmapOr";
break;
- case T_Scan:
- return "Scan";
- break;
case T_SeqScan:
return "SeqScan";
break;