]> granicus.if.org Git - postgresql/commit
Reduce lock levels of some ALTER TABLE cmds
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 6 Apr 2014 15:13:43 +0000 (11:13 -0400)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 6 Apr 2014 15:13:43 +0000 (11:13 -0400)
commite5550d5fec66aa74caad1f79b79826ec64898688
tree046444c974bf3aa9833545c0b9bbc183c37dbfa1
parent80a5cf643adb496abe577a1ca6dc0c476d849c19
Reduce lock levels of some ALTER TABLE cmds

VALIDATE CONSTRAINT

CLUSTER ON
SET WITHOUT CLUSTER

ALTER COLUMN SET STATISTICS
ALTER COLUMN SET ()
ALTER COLUMN RESET ()

All other sub-commands use AccessExclusiveLock

Simon Riggs and Noah Misch

Reviews by Robert Haas and Andres Freund
13 files changed:
doc/src/sgml/mvcc.sgml
doc/src/sgml/ref/alter_table.sgml
src/backend/catalog/toasting.c
src/backend/commands/cluster.c
src/backend/commands/createas.c
src/backend/commands/tablecmds.c
src/backend/tcop/utility.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/cache/relcache.c
src/include/catalog/toasting.h
src/test/isolation/isolation_schedule
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql