pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Abadie Lana <Lana.Abadie@iter.org>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: RE: select query does not pick up the right index
Date: Thu, 3 Jan 2019 12:58:06 +0000
Message-ID: <92561fd0a0a846288cb0360ee0ae2505@iter.org> (raw)
In-Reply-To: <20190102164525.GU25379@telsasoft.com>
References: <c2d19232595246018b277ebcd59a0046@iter.org>
	<20190102164525.GU25379@telsasoft.com>




Lana ABADIE
Database Engineer
CODAC Section

ITER Organization, Building 72/4108, SCOD, Control System Division
Route de Vinon-sur-Verdon - CS 90 046 - 13067 St Paul Lez Durance Cedex - France
Phone: +33 4 42 17 84 02
Get the latest ITER news on http://www.iter.org/whatsnew

-----Original Message-----
From: Justin Pryzby <pryzby@telsasoft.com> 
Sent: 02 January 2019 17:45
To: Abadie Lana <Lana.Abadie@iter.org>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: select query does not pick up the right index

On Wed, Jan 02, 2019 at 04:28:41PM +0000, Abadie Lana wrote:
> css_archive_3_0_0=# explain analyze select t.name, c.smpl_time,c.nanosecs,c.float_val,c.num_                                                                       val,c.str_val,c.datatype,c.array_val from sample c, channel t where t.channel_id=c.channel_i                                                                       d and t.name='BUIL-B36-VA-RT-RT1:CL0001-2-ABW'   order by c.smpl_time desc limit 5;
>  QUERY PLAN
> 
> --------------------------------------------------------------------------------------------
> --------------------------------------------------------------------------------------------
> -------------
> Gather  (cost=1004.71..125606.08 rows=5 width=150) (actual time=38737.443..1220277.244 rows
> =3 loops=1)
>    Workers Planned: 1
>    Workers Launched: 1
>    Single Copy: true

Do you have force_parallel_mode set ?

http://rhaas.blogspot.com/2018/06/using-forceparallelmode-correctly.html

-- 
Justin Pryzby
System Administrator
Telsasoft
+1-952-707-8581


Hi Justin
Indeed force_parallel_mode was set to on. Even after disabling it, same issue...
cheers




view thread (21+ messages)  latest in thread

Message-ID: <92561fd0a0a846288cb0360ee0ae2505@iter.org>
Permalink:  ../92561fd0a0a846288cb0360ee0ae2505@iter.org/
Also on:    postgresql.org/message-id/92561fd0a0a846288cb0360ee0ae2505@iter.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: Lana.Abadie@iter.org, pryzby@telsasoft.com, pgsql-performance@lists.postgresql.org
  Subject: RE: select query does not pick up the right index
  In-Reply-To: <92561fd0a0a846288cb0360ee0ae2505@iter.org>

* 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