Disallow LOCK TABLE outside a transaction block (or function), since this case
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/declare.sgml | modified | +3 −4 |
| doc/src/sgml/ref/lock.sgml | modified | +10 −7 |
| src/backend/tcop/utility.c | modified | +6 −1 |
| src/test/regress/expected/privileges.out | modified | +6 −0 |
| src/test/regress/sql/privileges.sql | modified | +6 −0 |