Обсуждение: Question !

Поиск
Список
Период
Сортировка

Question !

От
"Ruslan P. Yawdoshak"
Дата:
Hove i can restrict access for tables in postgeSQL
and users can anly call function to change tables entries ?
(In function I'll self control access)

Thanx and Regards,
   Ruslan.



Re: Question !

От
Philip Warner
Дата:
At 19:55 6/10/00 +0300, Ruslan P. Yawdoshak wrote:
>Hove i can restrict access for tables in postgeSQL
>and users can anly call function to change tables entries ?
>(In function I'll self control access)

No. There was talk about implementing this, but so far it has gone nowhere,
I think...


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

Re: Question !

От
"Horst Herb"
Дата:
> Hove i can restrict access for tables in postgeSQL
> and users can anly call function to change tables entries ?
> (In function I'll self control access)

Give all users but one fictive "superuser" read-only access. Write a tier using pqlib as only means to get write access
tothe data base (this tier connects as the fictive "superuser" to the backend). Implement your functions in that tier. 

However, you probably don't want to do that. What you really might want is just writing "before insert or update"
triggersimplementing your functions. That way, no write access will happen before the triggered function has processed
thedata. Am I wrong? 

Horst