mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user