| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | Viacheslav N Tararin <taras(at)dekasoft(dot)com(dot)ua> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Rights for view. |
| Date: | 2003-02-11 16:46:53 |
| Message-ID: | 20030211164653.GB32571@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Feb 11, 2003 at 18:17:05 +0200,
Viacheslav N Tararin <taras(at)dekasoft(dot)com(dot)ua> wrote:
> ---- My test script ----
> create user user2 password 'u2';
> create schema user2;
> create table user2.table1(t1 integer);
> create view user2.view1 as select * from user2.table1;
> grant select on user2.view1 to user2;
> \c - user2;
> select * from user2.view1;
> select * from user2.table1;
>
> ---- My output -----
> CREATE USER
> CREATE SCHEMA
> CREATE TABLE
> CREATE VIEW
> GRANT
> You are now connected as new user user2.
> psql:test.sql:7: ERROR: user2: permission denied
> psql:test.sql:8: ERROR: user2: permission denied
I think you will need to grant select access on the schema or else user2
won't have access to user2.view1 because they don't have access to the schema.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jerome | 2003-02-11 16:47:53 | URGENT: pg_dump error |
| Previous Message | Andrew Sullivan | 2003-02-11 16:46:46 | Re: PostgreSQL x Oracle |