From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: jobin.augustine@percona.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15357: Data goes to wrong partition in HASH Partitioned table
Date: Tue, 28 Aug 2018 12:40:57 -0300
Message-ID: <20180828154057.ul5t2k4lzo7zmkjv@alvherre.pgsql> (raw)
In-Reply-To: <153547013018.1489.10425888757862385184@wrigleys.postgresql.org>
On 2018-Aug-28, PG Bug reporting form wrote:
> Step 3. Try inserting a row which will have remainder 0 after modulus
> operation
> postgres=# insert into hash_parted values (10);
> ERROR: no partition of relation "hash_parted" found for row
> DETAIL: Partition key of the failing row contains (a) = (10).
>
> FAILED!
The hash function for integers does not return the input integer,
therefore the modulus is not that of the integer value. This is not a
bug.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, jobin.augustine@percona.com
Subject: Re: BUG #15357: Data goes to wrong partition in HASH Partitioned table
In-Reply-To: <20180828154057.ul5t2k4lzo7zmkjv@alvherre.pgsql>
References: <153547013018.1489.10425888757862385184@wrigleys.postgresql.org> <20180828154057.ul5t2k4lzo7zmkjv@alvherre.pgsql>
* 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