From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cory Tucker <cory.tucker@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Query Crashes PG 10.3 using partitions, works on 9.6
Date: Wed, 28 Mar 2018 18:19:13 -0400
Message-ID: <25711.1522275553@sss.pgh.pa.us> (raw)
In-Reply-To: <CAG_=8kDPWABX5o51Q53HvdWa6iWtA93sadk8Bb=Uk=jd_D0qSw@mail.gmail.com>
References: <CAG_=8kAYKjhQX3FmAWQBC95Evh3+qszOQxkNMm1Q4W1QO7+c4Q@mail.gmail.com>
<25195.1522275048@sss.pgh.pa.us>
<CAG_=8kDPWABX5o51Q53HvdWa6iWtA93sadk8Bb=Uk=jd_D0qSw@mail.gmail.com>
Cory Tucker <cory.tucker@gmail.com> 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
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, cory.tucker@gmail.com
Subject: Re: Query Crashes PG 10.3 using partitions, works on 9.6
In-Reply-To: <25711.1522275553@sss.pgh.pa.us>
References: <CAG_=8kAYKjhQX3FmAWQBC95Evh3+qszOQxkNMm1Q4W1QO7+c4Q@mail.gmail.com> <25195.1522275048@sss.pgh.pa.us> <CAG_=8kDPWABX5o51Q53HvdWa6iWtA93sadk8Bb=Uk=jd_D0qSw@mail.gmail.com> <25711.1522275553@sss.pgh.pa.us>
* 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