Skip to main content

ERROR: Permission denied for relation tran

  • September 16, 2016
  • 1 reply
  • 7 views

David_P_1
Forum|alt.badge.img+2

Vertica 7.1

 

create role read_only;
grant usage on schema public to read_only;
grant select on all tables in schema public to read_only;


create user johnqpublic;
alter user johnqpublic identified by '123456';
grant read_only to johnqpublic;

//login as johnqpublic

select * from tran

[Vertica][VJDBC](4367) ERROR: Permission denied for relation tran

 

Why would this be an error?

 

1 reply

Sharon_Cutter
Forum|alt.badge.img
  • Participating Frequently
  • September 16, 2016

If you want the role to be enabled by default for the user, you need to set it as a default role using ALTER USER.

 

  --Sharon