aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/catalog/dependency.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/backend/catalog/dependency.c b/src/backend/catalog/dependency.c
index 096b68c7f39..18316a3968b 100644
--- a/src/backend/catalog/dependency.c
+++ b/src/backend/catalog/dependency.c
@@ -2191,7 +2191,22 @@ find_expr_references_walker(Node *node,
}
context->rtables = list_delete_first(context->rtables);
break;
+ case RTE_NAMEDTUPLESTORE:
+
+ /*
+ * Cataloged objects cannot depend on tuplestores, because
+ * those have no cataloged representation. For now we can
+ * call the tuplestore a "transition table" because that's
+ * the only kind exposed to SQL, but someday we might have
+ * to work harder.
+ */
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("transition table \"%s\" cannot be referenced in a persistent object",
+ rte->eref->aliasname)));
+ break;
default:
+ /* Other RTE types can be ignored here */
break;
}
}