pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Master ZX <zx-master@bigmir.net>
To: Peter Geoghegan <pg@heroku.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject:  Re[2]: [BUGS] Re[2]: [BUGS] BUG #13869: Right Join query that never ends
Date: Tue, 26 Jan 2016 13:49:42 +0200
Message-ID: <E1aO27z-0001JM-0L@bst04.sputnikmedia.net> (raw)
In-Reply-To: <CAM3SWZStEZB_UmM2AjOqDEb2_9K3qtT49iy0GXG6M8=g0=HUZQ@mail.gmail.com>
References: <20160115151648.2968.21248@wrigleys.postgresql.org>
	<CAKFQuwYPOXUd8+QdBb0R4O_AQ3GWgYUyrquypTZkKpeK+8tpxA@mail.gmail.com>
	<E1aKQKO-0004go-Qh@bst01.sputnikmedia.net>
	<CAM3SWZStEZB_UmM2AjOqDEb2_9K3qtT49iy0GXG6M8=g0=HUZQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

19.01.2016 02:47, Peter Geoghegan <pg@heroku.com>
>On Sat, Jan 16, 2016 at 4:51 AM, Master ZX <zx-master@bigmir.net> wrote:
> > I can do more to investigate this behavior only if postgresql will consider my claim as bug that has to be fixed in first order.
> > Ideally I should give my DB schema and dump or VM wich reproduces this bug, but I can not give away our internal data. All other options I can not describe at public mailing list.
> 
> Why don't you use a tool like Linux's perf to determine where time is spent?:
> 
> https://wiki.postgresql.org/wiki/Profiling_with_perf
> 
> A simple "perf top" may be all that it takes to give us a better idea
> of where time is spent.
> 
> -- 
> Peter Geoghegan

This is forwarded message from 21 of Jan (looks like previous message lost)

I'm not really experienced in bug reporting and perf usage.
I've recorded some data via perf record for about 40 sec. and this is what I was able to get via perf report -g --children

-    8.98%     8.93%  postgres         postgres                 [.] slot_getattr                                                                             ▒
     slot_getattr                                                                                                                                            ▒
-    5.79%     5.75%  postgres         postgres                 [.] ExecMergeJoin                                                                            ▒
     ExecMergeJoin                                                                                                                                           ▒
-    3.73%     3.70%  postgres         postgres                 [.] ExecQual                                                                                 ▒
     ExecQual                                                                                                                                                ▒
-    3.68%     3.65%  postgres         postgres                 [.] ExecStoreMinimalTuple                                                                    ▒
     ExecStoreMinimalTuple                                                                                                                                   ▒
-    2.85%     0.00%  postgres         [unknown]                [.] 0x0000000000000001                                                                       ▒
     0x1                                                                                                                                                     ▒
-    2.80%     2.78%  postgres         postgres                 [.] tuplesort_gettupleslot                                                                   ▒
     tuplesort_gettupleslot                                                                                                                                  ▒
-    2.78%     0.00%  postgres         postgres                 [.] 0xffffffffffdb3602                                                                       ▒
     0x1b3602                                                                                                                                                ▒
-    2.76%     2.76%  postgres         postgres                 [.] 0x00000000001b3602                                                                       ▒
     0x1b3602                                                                                                                                                ▒
-    2.64%     2.62%  postgres         postgres                 [.] MemoryContextReset                                                                       ▒
     MemoryContextReset                                                                                                                                      ▒
-    2.30%     2.28%  postgres         postgres                 [.] ExecProcNode                                                                             ▒
     ExecProcNode                                                                                                                                            ▒
-    2.26%     2.25%  postgres         postgres                 [.] pgstat_end_function_usage                                                                ▒
     pgstat_end_function_usage                                                                                                                               ▒
-    2.24%     0.00%  postgres         postgres                 [.] 0xffffffffffdb35f0                                                                       ▒
     0x1b35f0                                                                                                                                                ▒
-    2.23%     2.23%  postgres         postgres                 [.] 0x00000000001b35f0                                                                       ▒
     0x1b35f0                                                                                                                                                ▒
-    2.13%     2.12%  postgres         postgres                 [.] ExecSort                                                                                 ▒
     ExecSort                                                                                                                                                ▒
-    1.87%     1.86%  postgres         postgres                 [.] check_stack_depth                                                                        ▒
   + check_stack_depth                                                                                                                                       ▒
-    1.47%     1.46%  postgres         postgres                 [.] pgstat_init_function_usage                                                               ▒
     pgstat_init_function_usage


I have about 100Mb of perf.data and as far as I can understand perf report will be most informative on machine where it was collected.
So in a case if you need some other data from perf.dump just let me know.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <E1aO27z-0001JM-0L@bst04.sputnikmedia.net>
Permalink:  ../E1aO27z-0001JM-0L@bst04.sputnikmedia.net/
Also on:    postgresql.org/message-id/E1aO27z-0001JM-0L@bst04.sputnikmedia.net

 · 

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-bugs@postgresql.org
  Cc: zx-master@bigmir.net, pg@heroku.com, david.g.johnston@gmail.com
  Subject: Re: [BUGS] Re[2]: [BUGS] BUG #13869: Right Join query that never ends
  In-Reply-To: <E1aO27z-0001JM-0L@bst04.sputnikmedia.net>
  References: <20160115151648.2968.21248@wrigleys.postgresql.org> <CAKFQuwYPOXUd8+QdBb0R4O_AQ3GWgYUyrquypTZkKpeK+8tpxA@mail.gmail.com> <E1aKQKO-0004go-Qh@bst01.sputnikmedia.net> <CAM3SWZStEZB_UmM2AjOqDEb2_9K3qtT49iy0GXG6M8=g0=HUZQ@mail.gmail.com> <E1aO27z-0001JM-0L@bst04.sputnikmedia.net>

* 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