Re: Grant select on view
От | Tom Lane |
---|---|
Тема | Re: Grant select on view |
Дата | |
Msg-id | 3900.1017674082@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Grant select on view (thiemo <thiemo@gmx.ch>) |
Ответы |
Re: Grant select on view
|
Список | pgsql-novice |
thiemo <thiemo@gmx.ch> writes: > Oh, sure. A self-compiled 7.2, without any source code modifications. I=20 > first instal a sequence: You're still not being specific enough, because as closely as I can reproduce your example, it works fine: regression=# CREATE SEQUENCE seq; CREATE regression=# CREATE TABLE base ( regression(# att1 int default nextval('seq'), regression(# att2 text, regression(# attn varchar); CREATE regression=# CREATE VIEW vie AS select * from base regression-# WHERE attn = CURRENT_USER::varchar; CREATE regression=# create user usr; CREATE USER regression=# GRANT SELECT ON vie TO usr; GRANT regression=# \c - usr You are now connected as new user usr. regression=> select * from base; ERROR: base: Permission denied. regression=> select * from vie; att1 | att2 | attn ------+------+------ (0 rows) regression=> It's not apparent to me what you did differently from the above to cause a permissions problem. regards, tom lane
В списке pgsql-novice по дате отправления: