1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Allow to lock views.

Now all tables used in view definitions can be recursively locked by a
LOCK command.

Author: Yugo Nagata
Reviewed by Robert Haas, Thomas Munro and me.

Discussion: https://postgr.es/m/20171011183629.eb2817b3.nagata%40sraoss.co.jp
This commit is contained in:
Tatsuo Ishii
2018-03-30 09:18:02 +09:00
parent fb60478011
commit 34c20de4d0
4 changed files with 285 additions and 18 deletions

View File

@ -45,6 +45,11 @@ LOCK [ TABLE ] [ ONLY ] <replaceable class="parameter">name</replaceable> [ * ]
end.)
</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.
</para>
<para>
When acquiring locks automatically for commands that reference
tables, <productname>PostgreSQL</productname> always uses the least