Re: Catalog permissions - Mailing list pgsql-admin

From Gilberto Castillo
Subject Re: Catalog permissions
Date
Msg-id 46538.192.168.207.54.1427817551.squirrel@webmail.etecsa.cu
Whole thread Raw
In response to Catalog permissions  (BRUNO CESAR BERNARDES <bruno.bernardes@embrapa.br>)
Responses Re: Catalog permissions
Re: Catalog permissions
List pgsql-admin

> Hi,
>
> I have to allow one user to use my Postgres installation in one schema of
> several. We are preparing an phpPGAdmin installation to give an remote
> access to this schema.
> The phpPDAdmin is showing the entire catalog to this user and allowing
> access only in the schema that I gave permissions to him.
> How do I do to this user can see only the schema that he has access, not
> the entire catalog.
> Is it possible?

Use:

GRANT usage on schema zzz to uuu;
Alter user uuu set default_transaction_read_only = on;
GRANT select on all tables in schema zzz to uuu;


Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba
---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com>, <http://www.viruslist.com>

pgsql-admin by date:

Previous
From: BRUNO CESAR BERNARDES
Date:
Subject: Catalog permissions
Next
From:
Date:
Subject: Re: Permission select pg_stat_replication