From: Tom Lane <tgl@sss.pgh.pa.us>
To: weigelt@metux.de
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: security via views
Date: Wed, 27 Apr 2005 13:27:30 -0400
Message-ID: <24260.1114622850@sss.pgh.pa.us> (raw)
In-Reply-To: <20050427155202.GA20043@nibiru.borg.metux.de>
References: <20050427155202.GA20043@nibiru.borg.metux.de>
Enrico Weigelt <weigelt@metux.de> writes:
> Most of the database access works over views and functions.
> For functions its possible to run them with separate privileges
> than the calling user. But is this also possible with views ?
> I've noticed that for views also GRANT is necessary (AFAIK a
> view is nothing else than a table with appropriate RULEs).
You have noticed incorrectly. A view's references to other tables
are privilege-checked with respect to the owner of the view.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, weigelt@metux.de
Subject: Re: security via views
In-Reply-To: <24260.1114622850@sss.pgh.pa.us>
References: <20050427155202.GA20043@nibiru.borg.metux.de> <24260.1114622850@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox