Lin Wen created HAWQ-1325:
-----------------------------
Summary: Allow queries related to pg_temp if ranger is enable
Key: HAWQ-1325
URL: https://issues.apache.org/jira/browse/HAWQ-1325
Project: Apache HAWQ
Issue Type: Sub-task
Reporter: Lin Wen
Assignee: Ed Espino
Fix For: 2.2.0.0-incubating
Queries related to temp will send request to RPS, asking the privilege of
schema "pg_temp_XXX", like this:
./hawq-2017-02-13_142852.csv:2017-02-13 14:29:29.718445
CST,"linw","postgres",p71787,th-1324481600,"[local]",,2017-02-13 14:29:01 CST,
8477,con13,cmd3,seg-1,,,x8477,sx1,"DEBUG3","00000","send json request to
ranger : { ""requestId"": ""3"", ""user"": ""linw"", ""client Ip"":
""127.0.0.1"", ""context"": ""select * from temp1;"", ""access"": [ {
""resource"": { ""database"": ""postgres"", ""schema"": "" pg_temp_13"",
""table"": ""temp1"" }, ""privileges"": [ ""select"" ] } ] }",,,,,,"select *
from temp1;",0,,"rangerrest.c",454,
In order to better control, for pg_temp_XX schema and objects in that schema,
we should fall back these checks to catalog without sending requests to RPS.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)