Re: Permissions and views.

From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Dariusz Pietrzak <dariush(at)ajax(dot)umcs(dot)lublin(dot)pl>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Permissions and views.
Date: 2001-05-07 05:55:30
Message-ID: 01050708553000.17471@bugs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Lun 07 May 2001 11:29, you wrote:
> > What PG version is this?
>
> 7.0.2
>
> It is said that RULES are executed with rule's owner permissions, so how
> is it possible that different users are getting different results?

This is not true. Rules are not executed with owner permission. The
permission needed is over the relation on which the
SELECT/INSERT/DELETE/UPDATE has been executed.

An example: If you have permission to read (SELECT) on a table, the rule over
that table, ON select will be executed, else NOT.

Saludos... :-)

P.D.: Check views and rules for more info.

--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jorge Escalante 2001-05-07 08:26:17 Nu-B question
Previous Message Mitch Vincent 2001-05-07 03:45:27 Re: Is this expected? (Index scanning)

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2001-05-07 08:12:32 Re: TABLE RENAME/NUMERIC FILENAMES (Was: New Linux xfs/reiser file systems)
Previous Message mlw 2001-05-06 20:47:52 Re: File system performance and pg_xlog (More info)