From: Daniel Cristian Cruz <danielcristian@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Revoking usage of pg_catalog
Date: Wed, 9 May 2007 10:05:21 -0300
Message-ID: <48d0cacb0705090605i4c1c2107s2186c52468e07d46@mail.gmail.com> (raw)
Hi there!
Is it possible to revoke usage of pg_catalog for a specific user?
The reason is to secure PostgreSQL. If a user can connect to a database, it
could query pg_class, pg_attribute, pg_proc search for specific tables and
if using dblink, even database passwords...
I just made a test, revoking usage of pg_catalog from PUBLIC, but tables are
still available through "SELECT * FROM pg_class", but not through "SELECT *
FROM pg_catalog.pg_class". I found in manual, where it says pg_catalog is
searched before any schema on search_path...
If schema pg_catalog became blocked, PostgreSQL could be used? Could it be
possible to made queries on allowed schemas and tables? This could be an
item for the wishlist?
Kind regards,
--
Daniel Cristian Cruz
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: danielcristian@gmail.com
Subject: Re: Revoking usage of pg_catalog
In-Reply-To: <48d0cacb0705090605i4c1c2107s2186c52468e07d46@mail.gmail.com>
* 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