From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: declarative partition by list, "other values" syntax
Date: Mon, 20 Nov 2017 13:52:48 -0700 (MST)
Message-ID: <1511211168922-0.post@n3.nabble.com> (raw)
Hello,
I was trying to create a partitionned table by list,
that has on special partition for "other values"
for exemple
create table wiki_data_part(
category varchar(20),
tim_id bigint,
pag_id bigint,
requests int,
size bigint
)
PARTITION BY LIST (category );
CREATE TABLE wiki_data_part_a PARTITION OF wiki_data_part
FOR VALUES IN ('ang.q','ace.mw', ...);
CREATE TABLE wiki_data_part_b PARTITION OF wiki_data_part
FOR VALUES IN ('bs.s','bh.mw','bar','br.d', ...);
How could I create a partition containing the other values (like MINVALUE,
MAXVALUE for range partition) ?
CREATE TABLE wiki_data_part_others PARTITION OF wiki_data_part
FOR VALUES IN (others);
could not find it in doc
https://www.postgresql.org/docs/10/static/sql-createtable.html
Thanks in advance
Regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
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-general@postgresql.org
Cc: legrand_legrand@hotmail.com
Subject: Re: declarative partition by list, "other values" syntax
In-Reply-To: <1511211168922-0.post@n3.nabble.com>
References: <1511211168922-0.post@n3.nabble.com>
* 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