diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2018-04-17 16:59:17 +0900 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2018-04-17 16:59:17 +0900 |
commit | 03030512d1e4df78dc2543d3fe3b6d13e5cb63f6 (patch) | |
tree | 0becd78b06184c6a1b28e33a46d6ceb0ad700965 /doc/src | |
parent | 47c91b55991883322fdbc4495ce7fe6b2166e8fe (diff) | |
download | postgresql-03030512d1e4df78dc2543d3fe3b6d13e5cb63f6.tar.gz postgresql-03030512d1e4df78dc2543d3fe3b6d13e5cb63f6.zip |
Add more infinite recursion detection while locking a view.
Also add regression test cases for detecting infinite recursion in
locking view tests. Some document enhancements. Patch by Yugo Nagata.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/lock.sgml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/lock.sgml b/doc/src/sgml/ref/lock.sgml index 96d477c2038..a225cea63b2 100644 --- a/doc/src/sgml/ref/lock.sgml +++ b/doc/src/sgml/ref/lock.sgml @@ -46,8 +46,8 @@ LOCK [ TABLE ] [ ONLY ] <replaceable class="parameter">name</replaceable> [ * ] </para> <para> - When a view is specified to be locked, all relations appearing in the view - definition query are also locked recursively with the same lock mode. + When a view is locked, all relations appearing in the view definition + query are also locked recursively with the same lock mode. </para> <para> @@ -174,6 +174,13 @@ LOCK [ TABLE ] [ ONLY ] <replaceable class="parameter">name</replaceable> [ * ] </para> <para> + The user performing the lock on the view must have the corresponding privilege + on the view. In addition the view's owner must have the relevant privileges on + the underlying base relations, but the user performing the lock does + not need any permissions on the underlying base relations. + </para> + + <para> <command>LOCK TABLE</command> is useless outside a transaction block: the lock would remain held only to the completion of the statement. Therefore <productname>PostgreSQL</productname> reports an error if <command>LOCK</command> |