Disallow LOCK TABLE outside a transaction block (or function), since this case
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Nov 2008 00:57:19 +0000 (00:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Nov 2008 00:57:19 +0000 (00:57 +0000)
commitfc5af261e545646848ba8b0ce5b45115a76dc77b
treefb490ba177e6361a41a84266ade70fcac18c991f
parent73faaa44aeb08bf05d7f7baf4666393d17b8a21f
Disallow LOCK TABLE outside a transaction block (or function), since this case
almost certainly represents user error.  Per a gripe from Sebastian Böhm
and subsequent discussion.
doc/src/sgml/ref/declare.sgml
doc/src/sgml/ref/lock.sgml
src/backend/tcop/utility.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql