Re: Determining PUBLIC's permissions

From: Dhaval Jaiswal <bablu_postgres(at)yahoo(dot)com>
To: "Roderick A(dot) Anderson" <raanders(at)cyber-office(dot)net>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Determining PUBLIC's permissions
Date: 2009-03-28 00:37:07
Message-ID: 55337.59147.qm@web111204.mail.gq1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> select a.relname, a.relowner, b.oid, b.rolname from pg_class a, pg_roles b where relname like '<table_name>' and a.relowner=b.oid and relkind = 'r';

>> \dt+

--
Thanks & Regards
Dhaval Jaiswal

________________________________
From: Roderick A. Anderson <raanders(at)cyber-office(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Sent: Friday, March 20, 2009 12:52:31 AM
Subject: [GENERAL] Determining PUBLIC's permissions

I'm trying to determine the permissions PUBLIC has on several tables/views.  Or would this be the default permissions for a table/view?

pg_user, pg_roles, pg_group, pg_authid, pg_auth_members, pg_database, pg_tablespace, and pg_settings.

\dp pg_user

returns (0 rows).

I am logged in to template1 as postgres.

I am doing some testing of multi-tenant/shared-database-hosting options and want to try to get around the possible limitations mentioned in the article at <http://wiki.postgresql.org/wiki/Shared_Database_Hosting>. After revoking from public I want to grant those permission back to the 'main' database user.  Need to know what they are.

I was sure there was a thread recently on determining table permissions and thought the \dp would do it.

Any suggestions?

\\||/
Rod
--

-- Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dhaval Jaiswal 2009-03-28 00:46:20 Re: Postgresql On Windows
Previous Message Vibhor Kumar 2009-03-27 23:57:57 Re: Multidatabase query