From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Remove unnecessairly duplicated gram.y productions
Date: Fri, 28 Apr 2017 00:14:58 +0000
Message-ID: <E1d3tYo-0002XR-KV@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Remove unnecessairly duplicated gram.y productions
Declarative partitioning duplicated the TypedTableElement productions,
evidently to remove the need to specify WITH OPTIONS when creating
partitions. Instead, simply make WITH OPTIONS optional in the
TypedTableElement production and remove all of the duplicate
PartitionElement-related productions. This change simplifies the
syntax and makes WITH OPTIONS optional when adding defaults, constraints
or storage parameters to columns when creating either typed tables or
partitions.
Also update pg_dump to no longer include WITH OPTIONS, since it's not
necessary, and update the documentation to reflect that WITH OPTIONS is
now optional.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b9a3ef55b253d885081c2d0e9dc45802cab71c7b
Modified Files
--------------
doc/src/sgml/ref/create_foreign_table.sgml | 2 +-
doc/src/sgml/ref/create_table.sgml | 4 +-
src/backend/parser/gram.y | 68 ++++++++++--------------------
src/bin/pg_dump/pg_dump.c | 17 +++++---
src/test/regress/expected/create_table.out | 2 +-
src/test/regress/expected/sanity_check.out | 3 ++
src/test/regress/expected/typed_table.out | 37 ++++++++++++++--
src/test/regress/sql/create_table.sql | 2 +-
src/test/regress/sql/typed_table.sql | 21 ++++++++-
9 files changed, 94 insertions(+), 62 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: sfrost@snowman.net
Subject: Re: pgsql: Remove unnecessairly duplicated gram.y productions
In-Reply-To: <E1d3tYo-0002XR-KV@gemulon.postgresql.org>
References: <E1d3tYo-0002XR-KV@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