From: | Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Keith Fiske <keith(at)omniti(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [COMMITTERS] pgsql: Implement table partitioning. |
Date: | 2016-12-12 05:06:45 |
Message-ID: | d3ae9aa6-f8ae-6894-dd84-94b5d518180e@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 2016/12/10 7:55, Keith Fiske wrote:
> Working on a blog post for this feature and just found some more
> inconsistencies with the doc examples. Looks like the city_id column was
> defined in the measurements table when it should be in the cities table.
> The addition of the partition to the cities table fails since it's missing.
>
> Examples should look like this:
>
> CREATE TABLE measurement (
> logdate date not null,
> peaktemp int,
> unitsales int
> ) PARTITION BY RANGE (logdate);
>
> CREATE TABLE cities (
> city_id bigserial not null,
> name text not null,
> population int
> ) PARTITION BY LIST (initcap(name));
>
> I actually changed my example to have city_id use bigserial to show that
> sequences are inherited automatically. May be good to show that in the docs.
Attached is a documentation patch fixing inconsistencies in the examples
that Keith reports and also improve them a bit (cities_west example sounds
a bit contrived now that I think).
Also, I posted a patch earlier [1] to mention the limitation that row
movement caused by UPDATE is treated an error. I have combined it into
this patch, so that all the documentation fixes proposed are together.
Thanks,
Amit
[1]
https://www.postgresql.org/message-id/a4f261c2-8554-f443-05ff-d97dddc19689%40lab.ntt.co.jp
Attachment | Content-Type | Size |
---|---|---|
misc-doc-improvements-1.patch | text/x-diff | 5.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2016-12-12 07:29:03 | pgsql: Fix broken autoconf test for random number source. |
Previous Message | Tom Lane | 2016-12-11 23:04:49 | pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2016-12-12 05:18:09 | Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX |
Previous Message | Craig Ringer | 2016-12-12 04:59:32 | Re: jsonb problematic operators |