pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow specifying STORAGE attribute for a new table
Date: Wed, 13 Jul 2022 10:28:27 +0000
Message-ID: <E1oBZbV-002a3L-ID@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1oBZbV-002a3L-ID@gemulon.postgresql.org>
Permalink:  ../E1oBZbV-002a3L-ID@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oBZbV-002a3L-ID@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Allow specifying STORAGE attribute for a new table
  In-Reply-To: <E1oBZbV-002a3L-ID@gemulon.postgresql.org>
  References: <E1oBZbV-002a3L-ID@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox