Allow specifying STORAGE attribute for a new table

Previously, the STORAGE specification was only available in ALTER
TABLE.  This makes it available in CREATE TABLE as well.

Also make the code and the documentation for STORAGE and COMPRESSION
attributes consistent.

Author: Teodor Sigaev <[email protected]>
Author: Aleksander Alekseev <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Reviewed-by: wenjing zeng <[email protected]>
Reviewed-by: Matthias van de Meent <[email protected]>
Reviewed-by: Kyotaro Horiguchi <[email protected]>
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/784cedda0604ee4ac731fd0b00cd8b27e78c02d3

Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml         |  2 +-
doc/src/sgml/ref/create_table.sgml        | 29 +++++++++-
src/backend/commands/tablecmds.c          | 92 +++++++++++++++++--------------
src/backend/parser/gram.y                 | 24 +++++---
src/include/nodes/parsenodes.h            |  1 +
src/test/regress/expected/alter_table.out |  6 +-
src/test/regress/sql/alter_table.sql      |  5 +-
7 files changed, 107 insertions(+), 52 deletions(-)

Reply via email to