From: Tom Lane <tgl@sss.pgh.pa.us>
To: Milen Kulev <makulev@gmx.net>
Cc: pgsql-general@postgresql.org
Subject: Re: Partitioning...
Date: Mon, 12 Jun 2006 18:17:46 -0400
Message-ID: <13199.1150150666@sss.pgh.pa.us> (raw)
In-Reply-To: <000001c68e6b$f0ecbf50$0a00a8c0@trivadis.com>
References: <000001c68e6b$f0ecbf50$0a00a8c0@trivadis.com>
"Milen Kulev" <makulev@gmx.net> writes:
> But When I issue:
> insert into part(id1, id2, filler)
> select
> round( (random()*20)::bigint,0) as id1, <---!!! Note that both partitions should be populated!
> round( (random()*20)::bigint,0) as id2,
> 'TTTTTTTTTTTESTTTTTZZZZZZZZZZZZZZZZZZZ'
> from generate_series(0,100000);
> ERROR: new row for relation "part_id1_0_10" violates check constraint "part_id1_0_10_id1_check"
Don't use random() in your test case.
regards, tom lane
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: tgl@sss.pgh.pa.us, makulev@gmx.net
Subject: Re: Partitioning...
In-Reply-To: <13199.1150150666@sss.pgh.pa.us>
References: <000001c68e6b$f0ecbf50$0a00a8c0@trivadis.com> <13199.1150150666@sss.pgh.pa.us>
* 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