Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fugDF-00077o-0o for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Aug 2018 15:47:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fugDC-0006Ui-Pu for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Aug 2018 15:47:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fugCt-0004xz-8s for pgsql-bugs@lists.postgresql.org; Tue, 28 Aug 2018 15:47:03 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fugCp-0001Le-FK for pgsql-bugs@lists.postgresql.org; Tue, 28 Aug 2018 15:47:01 +0000 Received: by mail-qt0-x244.google.com with SMTP id x7-v6so2228119qtk.5 for ; Tue, 28 Aug 2018 08:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=RU5UYYbRZsTfkGYS+n/UoTsduyYq4hiQmrEqaw6vu7M=; b=x7vNFNVkHuwIzJlyRdi4kh6GW01cB2Rog+hExc0MVd6eLXZqdzei884o0ewzE6sQ1x skBAYfmOUOLsJIrx+otvXVZFdFm3BwwjDRswuE/4dUjSVeO+Qgo9lUN0WECOp0J1OBux iB4DX+FemSHmYle5UL3CHWyMpkBnkE09a1FZbkJpAL/kX4tdviQGxZzRJxgcCSy1Q5Gl XSxDdLXgjSQYV7jyQowIk7Wer2Srtvql3aVxiZVoxCiliiFnARGFb95jQlkoVlyfhEhr pSzjDs/ZujVZ/wDmX1BxXlScs22YmBhi0RnGG40Ei+pkEna0L2Vi0HVB+P2/+1rQy41K XyCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=RU5UYYbRZsTfkGYS+n/UoTsduyYq4hiQmrEqaw6vu7M=; b=tCq1KM7loe1s8m/DiOzGGjfW1/T9KZKWw/2eIlJdSXvbRL3KVaWEO/O6pUKKeI4nKY zaAkkcUZi16e2WAommhMaWg40AUCpE8fg+oUfFfTCGiNEzQ9MLJ2b07V6ozTgWoAbB4i o01JPD3E4pDMSYqhMvnyq3F2bNEOSgn0j8Y7jC0ElcxLQMK3VjJINiVVYv+4bri6Nfoz zYwmAFzAlPu9t5UoXWLUDp7tOFQuEdNK7bNg8/TqMdHGvXgK1GqYS9axusZq2OS9E9uz KFf7e/sjf20AaLll5Kdwmn1M4+x2oJzBjj7IN9xSXDxhxca7/v/wWqJXCxVuJWs8stel XIdw== X-Gm-Message-State: APzg51C42JoL/8qfDyP30tVOXdBFYHcF8UJWBSFe/+1EuDkP0vdku+CL Ud/FnBOwq9oFgT2A+m0/3SkYCo+/XBXt5qT8jXhjKiVVwh3ycFLMBNn5qkj4ysodRoc8Eybkvs9 G2m9fwbd8uYXU2/8cvpibdFdFhzstaBXAcdUCjp3T0pt3Y8H5LC1rTN7n7l9ShctHSPUsBCMMiC 6GnFdtbUd2Uw== X-Google-Smtp-Source: ANB0VdZchlls+Jh7yVNQtapVxP+OLrbeiFbrmqXJjwkHNd7ww5mDAWdiW4x8f3351dDqG6lDru/kfg== X-Received: by 2002:ac8:8e8:: with SMTP id y37-v6mr2321697qth.339.1535471218372; Tue, 28 Aug 2018 08:46:58 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id f129-v6sm715045qkb.40.2018.08.28.08.46.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 08:46:57 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 698479D9; Tue, 28 Aug 2018 12:40:57 -0300 (-03) Date: Tue, 28 Aug 2018 12:40:57 -0300 From: Alvaro Herrera To: jobin.augustine@percona.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15357: Data goes to wrong partition in HASH Partitioned table Message-ID: <20180828154057.ul5t2k4lzo7zmkjv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <153547013018.1489.10425888757862385184@wrigleys.postgresql.org> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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