Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cORsw-0007X7-BL for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 16:24:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cORsv-000480-Pe for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 16:24:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cORrW-0002UV-65 for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 16:22:58 +0000 Received: from mail-wj0-x22d.google.com ([2a00:1450:400c:c01::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cORrS-00032o-9r for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 16:22:57 +0000 Received: by mail-wj0-x22d.google.com with SMTP id c11so243851486wjx.3 for ; Tue, 03 Jan 2017 08:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=gEmwfY4s7cTawXT2tUvwNjnWCas+Nh1VQJs0TE36/3U=; b=bTtmOJVG08BRzyg1GhfxP3dlj6rZSXho/QMb37pB96POsad9rdZayNmASP4Vd+GGlS Tnj7fYhJdd00kf2lkKwTmH6DpWJzNxRFiiIacH0ninBolFMCU0f7Bv07ptjH1WImBr1I SJzedUFxcrK6EYCf83XJ0ZZ380boJ3CHS1JMOABPAVXSuC6ryts2KVpuTRSINALU+s54 EeYiiEykNQU4dZi+jmi3krF8SDICeTrA4Ioz0zuSN1x5jTM984SkhT5pf+UatdjA9qio 3LSpJ+ZXfLNtzu3abDhO8Kq27AFucCL4qQtnWpN7f8CgR6cf7AKvY3xLx8NoOoMcr/MP tpNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=gEmwfY4s7cTawXT2tUvwNjnWCas+Nh1VQJs0TE36/3U=; b=XaEqQtofylUvw0AEz3z/JbcaEMeuni9R6lzm3c66SltpoHxzAGBaeR1qRh4u7kYhdW Y4uPaJRqRDKC1Qq8y+vziB+MA5iq//4Ktrg8xFXD5FkZQqN6l1fgRlFKca3S3Is4sF4h SeKUeMZKhFxIIe48jVIOTLRI4u+eNDHrcwGpy6rfOLuSlX1mVJ6vpDmP/JkLaKrqZR7Y hTsh7FUvccxtqM+wbNwMOa999xyd0AQp8JwIBTmOHSuSuk2mMgUfYXhCE3JUKQUKAQJv rPD8X1iSW1B6f1Pxze4JEZlsdkuODh+2GHbvN6+aJ6qBJmhwcn3t5X9wTqVYcL1tSlWa FOrg== X-Gm-Message-State: AIkVDXI/+5iPBDWLeqD4OFU7zsWEhf60v/ECRTW70VuwXf0sxCfpjSw0YhvXNKv1cpoJFsJeKSTqrBTY4qEQmELpiCGtyjiFekplFFbsQGx6OkutQKyDaC9ggsdRdAn2ohdYIHf4hHitZa07Zs6UKDDJXw+Nm/e0duTvJ03jRh4hZ0uqSGW5oZ5U8Y5ujjOwWTd3bnbH1jab X-Received: by 10.194.151.132 with SMTP id uq4mr51177527wjb.229.1483460572401; Tue, 03 Jan 2017 08:22:52 -0800 (PST) Received: from [10.137.2.17] (ip-89-177-46-65.net.upcbroadband.cz. [89.177.46.65]) by smtp.gmail.com with ESMTPSA id 135sm90595813wmh.14.2017.01.03.08.22.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 08:22:51 -0800 (PST) Subject: Re: multivariate statistics (v19) To: Dilip Kumar References: <5d1d62a6-6228-188c-e079-c1be59942168@2ndquadrant.com> <20160410.023757.532440443943028713.t-ishii@sraoss.co.jp> <0924a7a9-a219-1366-d3bc-2ddd98bc9269@2ndquadrant.com> <0ce73e37-7be4-8d9f-1ec4-46b0ca1d90c6@2ndquadrant.com> <1c7e4e63-769b-f8ce-f245-85ef4f59fcba@iki.fi> <9f7d5c73-71d6-fbe0-c190-b321db46f88c@iki.fi> <277d9678-7a35-a746-0eb5-41d4bcd4ef55@2ndquadrant.com> <61e71067-9461-d785-b4a6-6e8a08996d5f@2ndquadrant.com> <8508ad05-54b9-f402-e736-e992ea014a32@lab.ntt.co.jp> <72eeb3d5-c406-93b0-8ff8-11b31789f683@2ndquadrant.com> Cc: Amit Langote , Dean Rasheed , Heikki Linnakangas , Michael Paquier , Robert Haas , Tatsuo Ishii , David Steele , Tom Lane , =?UTF-8?Q?=c3=81lvaro_Herrera?= , Petr Jelinek , Jeff Janes , "pgsql-hackers@postgresql.org" From: Tomas Vondra Message-ID: <7c4b2088-5cbd-dfec-0b98-16e5a7db5308@2ndquadrant.com> Date: Tue, 3 Jan 2017 17:22:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 01/03/2017 02:42 PM, Dilip Kumar wrote: > On Tue, Dec 13, 2016 at 3:20 AM, Tomas Vondra > wrote: >> attached is v21 of the patch series, rebased to current master (resolving >> the duplicate OID and a few trivial merge conflicts), and also fixing some >> of the issues you reported. > > I wanted to test the grouping estimation behaviour with TPCH, While > testing I found some crash so I thought of reporting it. > > My setup detail: > TPCH scale factor : 5 > Applied all the patch for 21 series, and ran below queries. > > postgres=# analyze part; > ANALYZE > postgres=# CREATE STATISTICS s2 WITH (ndistinct) on (p_brand, p_type, > p_size) from part; > CREATE STATISTICS > postgres=# analyze part; > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > The connection to the server was lost. Attempting reset: Failed. > > I think it should be easily reproducible, in case it's not I can send > call stack or core dump. > Thanks for the report. It was trivial to reproduce and it turned out to be a fairly simple bug. Will send a new version of the patch soon. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers