summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorPavan Deolasee2015-05-21 10:15:59 +0000
committerPavan Deolasee2015-05-21 10:15:59 +0000
commit4dec5cbb6aa480d45f771ed35992a1dc1d07a960 (patch)
treeafc2c661ddf320fbffad7f21b61b3ec2bb2f7541 /src/include/commands
parentbc4ba671eb6b0bfaf0743764608f725ace8f8319 (diff)
Add support for materialized views.
Right now we only support MatViews on coordinators. They are not even created on the datanodes, though when refreshed they will be refreshed on all the coordinators. Also extend LOCAL TEMP tables to mean temp tables created only on the coordinator. This allows us to use the MatView's mechanism of refresh, though in the longer run we may want to revisit this and see if the refresh mechanism needs to be dealt differently in XL, especially if we end up supporting MatViews on the datanodes. Finally, slightly modify the join push-down so that a table without distribution mechanism are assumed coordinator only table and joined locally. This has a side-effect that pg_catalog tables are now also joined on the coordinator. This needs to be fixed.
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/tablecmds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h
index 15f487e757..bc97d6ccbe 100644
--- a/src/include/commands/tablecmds.h
+++ b/src/include/commands/tablecmds.h
@@ -76,6 +76,7 @@ extern void AtEOSubXact_on_commit_actions(bool isCommit,
SubTransactionId parentSubid);
#ifdef PGXC
extern bool IsTempTable(Oid relid);
+extern bool IsLocalTempTable(Oid relid);
extern bool IsIndexUsingTempTable(Oid relid);
extern bool IsOnCommitActions(void);
extern void DropTableThrowErrorExternal(RangeVar *relation,