From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Sergey Burladyan <eshkinkot@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Looks like merge join planning time is too big, 55 seconds
Date: Thu, 1 Aug 2013 23:19:15 -0400
Message-ID: <20130802031914.GE5669@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <87k3k5kkup.fsf@home.progtech.ru>
References: <CAJ2ymdjK-+LZHFY+cskRq98c_4F1PEfveOVNbNGpWL0Pczy5Ew@mail.gmail.com>
<8761vpwid4.fsf@seb.koffice.internal>
<CAMkU=1zyWZEC0YfQ0D4obWWHZqcLoLApUzf-f2+LOVH2ib=s_g@mail.gmail.com>
<87li4lusvd.fsf@seb.koffice.internal>
<CAMkU=1zuaFU7-DBJGawX+P+e4HjXmL+R_sxOLoB4Q18B5fRPHw@mail.gmail.com>
<87li4l9j34.fsf@home.progtech.ru>
<87k3k5kkup.fsf@home.progtech.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Sergey Burladyan escribió:
> I also find this trace for other query:
> explain select * from xview.user_items_v v where ( v.item_id = 132358330 );
>
> #0 0x00007ff766967620 in read () from /lib/libc.so.6
> #1 0x00007ff7689cfc25 in FileRead ()
> #2 0x00007ff7689ea2f6 in mdread ()
> #3 0x00007ff7689cc473 in ?? ()
> #4 0x00007ff7689ccf54 in ReadBufferExtended ()
> #5 0x00007ff7688050ca in index_fetch_heap ()
> #6 0x00007ff76880523e in index_getnext ()
> #7 0x00007ff768a63306 in ?? ()
> #8 0x00007ff768a67624 in ?? ()
> #9 0x00007ff768a67d9c in ?? ()
> #10 0x00007ff768a688fc in scalargtsel ()
It'd be useful to see what's in frames 7-9, but this might be related to
get_actual_variable_range(). I don't see anything else nearby that
would try to read portions of the table.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: alvherre@2ndquadrant.com, eshkinkot@gmail.com, jeff.janes@gmail.com
Subject: Re: Looks like merge join planning time is too big, 55 seconds
In-Reply-To: <20130802031914.GE5669@eldon.alvh.no-ip.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