aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/view.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c
index c3520ae03c6..f895488a5a5 100644
--- a/src/backend/commands/view.c
+++ b/src/backend/commands/view.c
@@ -102,7 +102,6 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
List *options)
{
Oid viewOid;
- Oid namespaceId;
LOCKMODE lockmode;
CreateStmt *createStmt = makeNode(CreateStmt);
List *attrList;
@@ -167,8 +166,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
* namespace is temporary.
*/
lockmode = replace ? AccessExclusiveLock : NoLock;
- namespaceId =
- RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
+ (void) RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
if (OidIsValid(viewOid) && replace)
{