Обсуждение: pgsql: Add CREATE TABLESPACE ... WITH ... Options

Поиск
Список
Период
Сортировка

pgsql: Add CREATE TABLESPACE ... WITH ... Options

От
Stephen Frost
Дата:
Add CREATE TABLESPACE ... WITH ... Options

Tablespaces have a few options which can be set on them to give PG hints
as to how the tablespace behaves (perhaps it's faster for sequential
scans, or better able to handle random access, etc).  These options were
only available through the ALTER TABLESPACE command.

This adds the ability to set these options at CREATE TABLESPACE time,
removing the need to do both a CREATE TABLESPACE and ALTER TABLESPACE to
get the correct options set on the tablespace.

Vik Fearing, reviewed by Michael Paquier.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5254958e924cd54f33d37026d85483fef986060d

Modified Files
--------------
doc/src/sgml/ref/create_tablespace.sgml   |   23 ++++++++++++++++++++++-
src/backend/commands/tablespace.c         |   12 +++++++++++-
src/backend/nodes/copyfuncs.c             |    1 +
src/backend/nodes/equalfuncs.c            |    1 +
src/backend/parser/gram.y                 |    3 ++-
src/include/nodes/parsenodes.h            |    1 +
src/test/regress/input/tablespace.source  |   10 ++++++++++
src/test/regress/output/tablespace.source |   13 +++++++++++++
8 files changed, 61 insertions(+), 3 deletions(-)