pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Jones <admin@cmicdo.com>
Cc: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Possible hang in 10.1 with JSON query over partially indexed partitions
Date: Thu, 18 Jan 2018 20:07:18 -0500
Message-ID: <7994.1516324038@sss.pgh.pa.us> (raw)
In-Reply-To: <852006162.725231.1516302046887@mail.yahoo.com>
References: <852006162.725231.1516302046887.ref@mail.yahoo.com>
	<852006162.725231.1516302046887@mail.yahoo.com>

Paul Jones <admin@cmicdo.com> writes:
> I may have discovered a situation in 10.1 where EXECUTEing a PREPARED
> statement acting on JSON data in partitioned tables hangs in an
> infinite loop for a particular set of data.  Unfortunately, the data is
> proprietary, so I did the best I could below to describe what happened.

You haven't provided any real reason to think that this represents an
infinite loop and not just a really slow query.  The query's filter
conditions are complex enough to render the planner's estimates basically
works of fiction :-(, so I have no faith in the estimates suggesting that
only a relatively small number of rows will get processed.  It's
definitely making some progress, because your successive backtraces
show different blocks getting read.

			regards, tom lane




view thread (3+ messages)

Message-ID: <7994.1516324038@sss.pgh.pa.us>
Permalink:  ../7994.1516324038@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7994.1516324038@sss.pgh.pa.us

 · 

reply

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, admin@cmicdo.com
  Subject: Re: Possible hang in 10.1 with JSON query over partially indexed partitions
  In-Reply-To: <7994.1516324038@sss.pgh.pa.us>
  References: <852006162.725231.1516302046887.ref@mail.yahoo.com> <852006162.725231.1516302046887@mail.yahoo.com> <7994.1516324038@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