pgsql: Add ALTER TABLESPACE ... MOVE command

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Add ALTER TABLESPACE ... MOVE command
Дата
Msg-id E1W4fyy-0002Hg-RN@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add ALTER TABLESPACE ... MOVE command

This adds a 'MOVE' sub-command to ALTER TABLESPACE which allows moving sets of
objects from one tablespace to another.  This can be extremely handy and avoids
a lot of error-prone scripting.  ALTER TABLESPACE ... MOVE will only move
objects the user owns, will notify the user if no objects were found, and can
be used to move ALL objects or specific types of objects (TABLES, INDEXES, or
MATERIALIZED VIEWS).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/76e91b38ba64e1da70ea21744b342cb105ea3400

Modified Files
--------------
doc/src/sgml/ref/alter_tablespace.sgml    |   59 +++++++++-
src/backend/commands/tablespace.c         |  171 +++++++++++++++++++++++++++++
src/backend/nodes/copyfuncs.c             |   15 +++
src/backend/nodes/equalfuncs.c            |   14 +++
src/backend/parser/gram.y                 |   46 +++++++-
src/backend/tcop/utility.c                |   14 +++
src/include/commands/tablespace.h         |    1 +
src/include/nodes/nodes.h                 |    1 +
src/include/nodes/parsenodes.h            |   10 ++
src/include/parser/kwlist.h               |    1 +
src/test/regress/input/tablespace.source  |    7 +-
src/test/regress/output/tablespace.source |    8 +-
src/tools/pgindent/typedefs.list          |    1 +
13 files changed, 340 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pgsql: Allow SET TABLESPACE to database default
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix VACUUM's reporting of dead-tuple counts to the stats collect