git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4b763ff) | patch
Add support for SET ACCESS METHOD in ALTER TABLE
2021年7月28日 01:10:44 +0000 (10:10 +0900)
2021年7月28日 01:10:44 +0000 (10:10 +0900)
commit b0483263dda0824cc49e3f8a022dab07e1cdf9a7
Add support for SET ACCESS METHOD in ALTER TABLE

The logic used to support a change of access method for a table is
similar to changes for tablespace or relation persistence, requiring a
table rewrite with an exclusive lock of the relation changed. Table
rewrites done in ALTER TABLE already go through the table AM layer when
scanning tuples from the old relation and inserting them into the new
one, making this implementation straight-forward.

Note that partitioned tables are not supported as these have no access
methods defined.

Author: Justin Pryzby, Jeff Davis
Reviewed-by: Michael Paquier, Vignesh C
Discussion: https://postgr.es/m/20210228222530.GD20769@telsasoft.com
doc/src/sgml/ref/alter_table.sgml diff | blob | blame | history
src/backend/commands/cluster.c diff | blob | blame | history
src/backend/commands/matview.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/include/commands/cluster.h diff | blob | blame | history
src/include/commands/event_trigger.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/test/regress/expected/create_am.out diff | blob | blame | history
src/test/regress/sql/create_am.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /