aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/matview.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2014-08-25 15:32:18 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2014-08-25 15:32:18 -0400
commit301fcf33eb7fcbcf1da113dabeed90b8eaf656eb (patch)
tree4f8053b67cc03bb68aa920d1268ece2e2e1ceadd /src/backend/commands/matview.c
parentd6d6020f1cf33a63bbae59d370b75fa5e98017f0 (diff)
downloadpostgresql-301fcf33eb7fcbcf1da113dabeed90b8eaf656eb.tar.gz
postgresql-301fcf33eb7fcbcf1da113dabeed90b8eaf656eb.zip
Have CREATE TABLE AS and REFRESH return an OID
Other DDL commands are already returning the OID, which is required for future additional event trigger work. This is merely making these commands in line with the rest of utility command support.
Diffstat (limited to 'src/backend/commands/matview.c')
-rw-r--r--src/backend/commands/matview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c
index a49e66f5da9..d8d3c0833a6 100644
--- a/src/backend/commands/matview.c
+++ b/src/backend/commands/matview.c
@@ -132,7 +132,7 @@ SetMatViewPopulatedState(Relation relation, bool newstate)
* The matview's "populated" state is changed based on whether the contents
* reflect the result set of the materialized view's query.
*/
-void
+Oid
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
ParamListInfo params, char *completionTag)
{
@@ -281,6 +281,8 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
}
else
refresh_by_heap_swap(matviewOid, OIDNewHeap);
+
+ return matviewOid;
}
/*