From 301fcf33eb7fcbcf1da113dabeed90b8eaf656eb Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 25 Aug 2014 15:32:18 -0400 Subject: 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. --- src/backend/commands/matview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/matview.c') 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; } /* -- cgit v1.2.3