postgresql/src/backend
Alvaro Herrera 59ab4ac324
Accept relations of any kind in LOCK TABLE
The restriction that only tables and views can be locked by LOCK TABLE
is quite arbitrary, since the underlying mechanism can lock any relation
type.  Drop the restriction so that programs such as pg_dump can lock
all relations they're interested in, preventing schema changes that
could cause a dump to fail after expending much effort.

Backpatch to 9.5.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Wells Oliver <wells.oliver@gmail.com>
Discussion: https://postgr.es/m/20201021200659.GA32358@alvherre.pgsql
2020-10-27 13:49:19 -03:00
..
access Extend amcheck to check heap pages. 2020-10-22 08:44:18 -04:00
bootstrap Make postgres.bki use the same literal-string syntax as postgresql.conf. 2020-10-04 16:09:55 -04:00
catalog Fix enum errdetail to mention bytes, not chars 2020-10-27 11:50:18 +01:00
commands Accept relations of any kind in LOCK TABLE 2020-10-27 13:49:19 -03:00
executor In INSERT/UPDATE, use the table's real tuple descriptor as target. 2020-10-26 11:36:53 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit llvmjit: Work around bug in LLVM 3.9 causing crashes after 72559438f9. 2020-10-15 18:17:00 -07:00
lib Use pg_bitutils for HyperLogLog. 2020-07-30 09:14:23 -07:00
libpq Fix -Wcast-function-type warnings on Windows/MinGW 2020-10-21 08:17:51 +02:00
main Clean up includes of s_lock.h. 2020-06-18 19:41:05 -07:00
nodes Include result relation info in direct modify ForeignScan nodes. 2020-10-14 10:58:38 +03:00
optimizer Optimize a few list_delete_ptr calls 2020-10-22 14:36:32 +13:00
parser Make procedure OUT parameters work with JDBC 2020-10-27 09:01:54 +01:00
partitioning Improve error cursor positions for problems with partition bounds. 2020-09-23 18:04:53 -04:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Fix -Wcast-function-type warnings on Windows/MinGW 2020-10-21 08:17:51 +02:00
postmaster Track statistics for spilling of changes from ReorderBuffer. 2020-10-08 09:09:08 +05:30
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Remove PartitionRoutingInfo struct. 2020-10-19 14:42:55 +03:00
rewrite Optimize a few list_delete_ptr calls 2020-10-22 14:36:32 +13:00
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
storage Extend PageIsVerified() to handle more custom options 2020-10-26 09:55:28 +09:00
tcop Fix bogus completion tag usage in walsender 2020-09-16 21:16:25 -03:00
tsearch Improve behavior of tsearch_readline(), and remove t_readline(). 2020-09-23 20:26:58 -04:00
utils Fix incorrect parameter name in a function header comment 2020-10-25 22:40:03 +13:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00