Re: 5.12.2.1. Example

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: jonas(dot)rosenthal(at)protechninjas(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: 5.12.2.1. Example
Date: 2026-10-23 08:44:55
Message-ID: 7E53F07A-2953-4F6A-871E-1A7B0A8A7042@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> On 23 Oct 2026, at 10:33, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>
> On Fri, 23 Oct 2026 at 21:12, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>> This page contains many examples, please specify which it is you find
>> problematic and paste the error message from postgres.
>
> Let's wait and see, but I suspect it's the "...".
>
> Maybe those would be better as comments, something like?
>
> CREATE TABLE measurement_y2006m03 PARTITION OF measurement
> FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
>
> -- plus y2006m04 .. y2007m10 (abbreviation for brevity)

Or perhaps "-- repeated for y2006m04 .. y2007m10 (abbreviated for brevity)"

> CREATE TABLE measurement_y2007m11 PARTITION OF measurement
> FOR VALUES FROM ('2007-11-01') TO ('2007-12-01');

If someone copy pastes the entire block I fear that they think it's a complete
example, and when it isn't then perhaps getting a syntax error is better?

That being said, replacing "..." is a good idea regardless of being a comment
or not, your suggestion makes the docs more readable,

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David Rowley 2026-10-23 08:53:57 Re: 5.12.2.1. Example
Previous Message David Rowley 2026-10-23 08:34:53 Re: 5.12.2.1. Example