Allow specifying STORAGE attribute for a new table
Peter Eisentraut <peter@eisentraut.org>
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: https://postgr.es/m/de83407a-ae3d-a8e1-a788-920eb334f25b@sigaev.ru
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_table.sgml | modified | +1 −1 |
| doc/src/sgml/ref/create_table.sgml | modified | +28 −1 |
| src/backend/commands/tablecmds.c | modified | +51 −41 |
| src/backend/parser/gram.y | modified | +17 −7 |
| src/include/nodes/parsenodes.h | modified | +1 −0 |
| src/test/regress/expected/alter_table.out | modified | +5 −1 |
| src/test/regress/sql/alter_table.sql | modified | +4 −1 |
Documentation touched
Discussion
- CREATE TABLE ( .. STORAGE ..) 17 messages · 2021-12-27 → 2022-07-13