Revert "Accept relations of any kind in LOCK TABLE".
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 6 Nov 2020 21:17:57 +0000 (16:17 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 6 Nov 2020 21:17:57 +0000 (16:17 -0500)
commit43c2e97ed45d665b1a8ef0fa3d20e7c5492f5f2b
tree0ae2c2c77f3d7aab8782170130eaa6c15828ec60
parent9e98ddd16e0623fe3f993fdd6dd032af5be7da6c
Revert "Accept relations of any kind in LOCK TABLE".

Revert 59ab4ac32, as well as the followup fix 33862cb9c, in all
branches.  We need to think a bit harder about what the behavior
of LOCK TABLE on views should be, and there's no time for that
before next week's releases.  We'll take another crack at this
later.

Discussion: http://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org
doc/src/sgml/ref/lock.sgml
src/backend/commands/lockcmds.c
src/test/regress/expected/lock.out
src/test/regress/sql/lock.sql