模式审计的权限被拒绝

时间:2016-01-21 11:41:49

标签: sql postgresql

我有一个名为x<-data.frame(x=as.Date(c(as.Date('2015-01-01'):as.Date('2016-01-01')), origin='1970-01-01')) dates<-as.Date(c(as.Date('2015-01-01'),as.Date('2015-03-04'),as.Date('2015-07-01')),origin='1970-01-01') values<-c(3,7,10) a=data.frame(dates,values) y=merge(x,a,by.x='x',by.y='dates',all.x=T) colnames(y)=c("x","value") test=function(i){ if(is.na(y[i,2])){ if(i==1) return(NA) return(test(i-1)) }else{ return(y[i,2]) } } y$value=sapply(1:nrow(y),test) 的数据库,我希望用户uat能够连接并对其进行操作。但我坚持这个错误:

  

引起:org.postgresql.util.PSQLException:错误:架构审核被拒绝

我试过了:

documentengine

但仍然没有工作......我想知道我在这里做错了什么。有提示吗?

修改

grant usage on schema public to documentengine;   
alter default privileges in schema public grant all on tables to documentengine;
alter default privileges in schema public grant all on sequences to documentengine;

grant connect on database uat to documentengine;

grant usage on schema public to documentengine;
grant select on all tables in schema public to documentengine;
grant select on all sequences in schema public to documentengine;


-- grant privileges to documentengine role
grant all privileges on all tables in schema public to documentengine;

0 个答案:

没有答案