/
deny.rst
46 lines (31 loc) · 974 Bytes
/
deny.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.. _ref-deny:
========
``DENY``
========
Denies privilege to an existing user on the whole cluster or on a specific
object.
.. rubric:: Table of contents
.. contents::
:local:
Synopsis
========
.. code-block:: psql
DENY { { DQL | DML | DDL | AL [,...] } | ALL [ PRIVILEGES ] }
[ON {SCHEMA | TABLE} identifier [, ...]]
TO user_name [, ...];
Description
===========
``DENY`` is a management statement to deny one or many privileges
on a specific object to one or many existing users.
``ON {SCHEMA | TABLE}`` is optional, if not specified the privilege will be
denied on the ``CLUSTER`` level.
For usage of the ``DENY`` statement see :ref:`administration-privileges`.
Parameters
==========
:identifier:
The identifier of the corresponding object.
If ``TABLE`` is specified the ``identifier`` should include the
table's full qualified name. Otherwise the table will be looked up in
the current schema.
:user_name:
The name of an existing user.