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:
@ -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
|
||||
|
Reference in New Issue
Block a user