public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniel Gustafsson <[email protected]>
To: pgsql-docs <[email protected]>
Subject: Trailing semicolons on partitioning example commands
Date: Fri, 26 Jan 2018 15:27:02 +0100
Message-ID: <[email protected]> (raw)

Is there a reason for not ending all partitioning commands with semicolons in
the declarative partitioning example?

	https://www.postgresql.org/docs/devel/static/ddl-partitioning.html

The two last commands with TABLESPACE clauses are ended with semicolons, the
first three arent.  Attached patch adds semicolons such that all are properly
ended.

cheers ./daniel



Attachments:

  [application/octet-stream] partcmd_semicolon.patch (1.2K, 2-partcmd_semicolon.patch)
  download | inline diff:
From 92e1b2fe5a470eb008e3b22a5706ffde1b915009 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <[email protected]>
Date: Fri, 26 Jan 2018 15:13:37 +0100
Subject: [PATCH] doc: End partition commands with trailing semicolon

---
 doc/src/sgml/ddl.sgml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index 3244399782..1e1f3428a6 100644
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -3097,14 +3097,14 @@ CREATE TABLE measurement (
 
 <programlisting>
 CREATE TABLE measurement_y2006m02 PARTITION OF measurement
-    FOR VALUES FROM ('2006-02-01') TO ('2006-03-01')
+    FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');
 
 CREATE TABLE measurement_y2006m03 PARTITION OF measurement
-    FOR VALUES FROM ('2006-03-01') TO ('2006-04-01')
+    FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
 
 ...
 CREATE TABLE measurement_y2007m11 PARTITION OF measurement
-    FOR VALUES FROM ('2007-11-01') TO ('2007-12-01')
+    FOR VALUES FROM ('2007-11-01') TO ('2007-12-01');
 
 CREATE TABLE measurement_y2007m12 PARTITION OF measurement
     FOR VALUES FROM ('2007-12-01') TO ('2008-01-01')
-- 
2.14.1.145.gb3622a4ee



view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Trailing semicolons on partitioning example commands
  In-Reply-To: <[email protected]>

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

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