pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Venkataramana Aitla <avr1984@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Issue with grant & revoke
Date: Thu, 18 Jan 2018 14:08:11 +0100
Message-ID: <1516280891.924.45.camel@cybertec.at> (raw)
In-Reply-To: <CAJi6zqo_uEWKtNQAHv7c9KN1RGdWgYyXTo_Rt5Q0GA0bx0g0vQ@mail.gmail.com>
References: <CAJi6zqo_uEWKtNQAHv7c9KN1RGdWgYyXTo_Rt5Q0GA0bx0g0vQ@mail.gmail.com>

Venkataramana Aitla wrote:
> How can we revoke alter and drop privileges from user/schema...??

Use the GRANT and REVOKE statements:

https://www.postgresql.org/docs/current/static/sql-grant.html
https://www.postgresql.org/docs/current/static/sql-revoke.html

Read the chapter on privileges:

https://www.postgresql.org/docs/current/static/ddl-priv.html

Privileges are additive, so if you try to revoke a privilege
that was not granted, it will do nothing.

In psql, use \z to list a table's privileges and \dn+
to list privileges on a schema.

Yours,
Laurenz Albe




view thread (2+ messages)

Message-ID: <1516280891.924.45.camel@cybertec.at>
Permalink:  ../1516280891.924.45.camel@cybertec.at/
Also on:    postgresql.org/message-id/1516280891.924.45.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, avr1984@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Issue with grant & revoke
  In-Reply-To: <1516280891.924.45.camel@cybertec.at>

* 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