Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TclVw-0007PC-QE for pgsql-bugs@arkaria.postgresql.org; Sun, 25 Nov 2012 23:21:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TclVv-0005ji-Ff for pgsql-bugs@arkaria.postgresql.org; Sun, 25 Nov 2012 23:21:27 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TclVu-0005jd-Q3 for pgsql-bugs@postgresql.org; Sun, 25 Nov 2012 23:21:26 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TclVs-0007X3-Vn for pgsql-bugs@postgresql.org; Sun, 25 Nov 2012 23:21:26 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TclVs-00039Z-7T for pgsql-bugs@postgresql.org; Sun, 25 Nov 2012 23:21:24 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TclVr-0005Sv-Kc for pgsql-bugs@postgresql.org; Sun, 25 Nov 2012 23:21:23 +0000 Date: Sun, 25 Nov 2012 23:21:23 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7703: Error with partitioning with distinct over aggregate To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7703 Logged by: Maksym Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.2.1 Operating system: Any Description:=20=20=20=20=20=20=20=20 Simple test case: test=3D# create table test (id serial); NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for serial column "test.id" CREATE TABLE test=3D# create index test_id_key on test(id); CREATE INDEX test=3D# create table test_part_1 (like test including all) INHERITS (test); NOTICE: merging column "id" with inherited definition CREATE TABLE test=3D# explain analyze select distinct min(id) from test; ERROR: failed to re-find MinMaxAggInfo record PS: without partioning or without index over id - no error. Tested 9.0.* versions is not affected by bug, but 9.2.1 and 9.1.6 is. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs