Re: Partitioning docs (was Re: Range partitioning and overlap)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>, Edson Richter <edsonrichter(at)hotmail(dot)com>
Subject: Re: Partitioning docs (was Re: Range partitioning and overlap)
Date: 2020-11-14 02:43:00
Message-ID: CAKFQuwZ+5Lz15bmMizx_dBd+E9LZ4nBKKc2XwxxD1CH=OxeK2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

On Fri, Nov 13, 2020 at 7:13 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> [ redirecting to pgsql-docs ]
>
> I wrote:
> > Edson Richter <edsonrichter(at)hotmail(dot)com> writes:
> >> Further on the documentation: "When creating a range partition, the
> lower bound specified with FROM is an inclusive bound, whereas the upper
> bound specified with TO is an exclusive bound."
>
> >> I'm pretty sure I cannot find this statement in PostgreSQL 13
> documentation page about partitioning. May be this statement is in another
> page?
>
> > It's in the CREATE TABLE reference page. Seems like it would be a good
> > idea to have it also in ddl.sgml's discussion of partitioning, though.
>
> I went to do that, and soon decided that section 5.11 (Table Partitioning)
> really could stand a fair amount of editorial attention. There's a lot
> of less than pitch-perfect English, paragraphs that were evidently written
> with only minimal attention to nearby existing material, diving into the
> weedy details in even the earliest introductory paras, and so on. I
> propose the attached.
>
>
Looks good to me (just read the patch), Thanks! Just one suggestion toward
the top:

...allows you to (specify declaratively => declare) that a table is divided
into partitions. (specification becomes declaration further down)

I am curious as to your thoughts on unique indexes and whether/how to
better incorporate advice regarding the use of ON CONFLICT with
partitioning [1] vis-a-vis the overview's claim of:

"The partitioning substitutes for leading columns of indexes, reducing
index size and making it more likely that the heavily-used parts of the
indexes fit in memory" [2]

David J.

[1]
https://www.postgresql.org/message-id/CAKFQuwYLtjoPh6Crrr1b2e92NSWJDLPE1W08C63u3JU9RBjooA%40mail.gmail.com
[2]
https://www.postgresql.org/docs/current/ddl-partitioning.html#DDL-PARTITIONING-OVERVIEW

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2020-11-14 03:15:48 Re: Partitioning docs (was Re: Range partitioning and overlap)
Previous Message Tom Lane 2020-11-14 02:13:34 Partitioning docs (was Re: Range partitioning and overlap)

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-11-14 03:15:48 Re: Partitioning docs (was Re: Range partitioning and overlap)
Previous Message Laurenz Albe 2020-11-14 02:22:51 Re: Error: checkpoint occurs too frequently