Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1JTa-0001zH-VB for pgsql-general@arkaria.postgresql.org; Wed, 28 Mar 2018 22:23:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1JTa-0004WY-1j for pgsql-general@arkaria.postgresql.org; Wed, 28 Mar 2018 22:23:26 +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.89) (envelope-from ) id 1f1JPg-0005so-5T for pgsql-general@lists.postgresql.org; Wed, 28 Mar 2018 22:19:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1JPY-0000w9-Je for pgsql-general@postgresql.org; Wed, 28 Mar 2018 22:19:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2SMJDqt025712; Wed, 28 Mar 2018 18:19:13 -0400 From: Tom Lane To: Cory Tucker cc: "pgsql-general@postgresql.org" Subject: Re: Query Crashes PG 10.3 using partitions, works on 9.6 In-reply-to: References: <25195.1522275048@sss.pgh.pa.us> Comments: In-reply-to Cory Tucker message dated "Wed, 28 Mar 2018 22:16:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25710.1522275553.1@sss.pgh.pa.us> Date: Wed, 28 Mar 2018 18:19:13 -0400 Message-ID: <25711.1522275553@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Cory Tucker writes: >> Can you extract a self-contained test case that uses unreasonable amounts >> of memory? It seems from this trace that the wheels are coming off in >> at least two places, but identifying exactly where is impossible without >> more info. > I will try to make a test case. The data in this table is PII so I can't > just export it, but I might be able to replicate using fake data. My guess is that the specific data is not critical at all, just the table properties. You might need to take care that the same EXPLAIN plan is selected, which might require fake data that has roughly similar properties as to number of distinct values and so on. regards, tom lane