From 52d5b553d6f3f8729e8c7eab227cbc3b4b3dfe0e Mon Sep 17 00:00:00 2001 From: Hubert Zhang Date: Fri, 24 Feb 2017 10:31:56 +0800 Subject: [PATCH] HAWQ-1356. Add waring when user does not have usage privilege of namespace. Signed-off-by: Chuling Wang --- src/backend/catalog/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c index 3a90054cdf..e4ee588809 100644 --- a/src/backend/catalog/namespace.c +++ b/src/backend/catalog/namespace.c @@ -1939,7 +1939,7 @@ static void checkNamespaceInternal(List **oidlist, Oid namespaceId, Oid roleid) *oidlist = lappend_oid(*oidlist, namespaceId); } else { - if (OidIsValid(namespaceId)) { + if (OidIsValid(namespaceId) && aclType == HAWQ_ACL_RANGER) { elog(WARNING, "usage privilege of namespace %s is required.", getNamespaceNameByOid(namespaceId)); }