Allow specifying STORAGE attribute for a new table
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 13 Jul 2022 10:21:45 +0000 (12:21 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 13 Jul 2022 10:21:45 +0000 (12:21 +0200)
commit784cedda0604ee4ac731fd0b00cd8b27e78c02d3
tree1c69883227a27f838c8bad2862a15ef00f461c14
parent503e3833ef240c94e114be8703046d52f24da021
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 <teodor@sigaev.ru>
Author: Aleksander Alekseev <aleksander@timescale.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: wenjing zeng <wjzeng2012@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: http://postgr.es/m/de83407a-ae3d-a8e1-a788-920eb334f25b@sigaev.ru
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/create_table.sgml
src/backend/commands/tablecmds.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql