sql - 42501: INSUFFICIENT PRIVILEGE ERROR while querying in Postgresql -


i trying query database table in postgresql, every time run below query gives me insufficient privilege error. possibly reason such permission denied error. also, using pgadmin tool in windows connect database in linux environment. below query running

> > select appid,hash  >       app >       appid=1; 

while running same query getting below error

error:  permission denied relation app  ********** error **********  error: permission denied relation app sql state: 42501 

the user running query need permissions table. can grant them user grant statement. below example grants public

grant select on tablename public; 

also have seen selinux cause isses , places such here mention it. not sure of command turn selinux off can see if running using

selinuxenabled && echo enabled || echo disabled 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -