pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Richard Lee <swift1984@gmail.com>
Cc: tomas.vondra@2ndquadrant.com
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Fwd: Query with high planning time compared to execution time
Date: Mon, 5 Nov 2018 07:55:19 -0600
Message-ID: <20181105135519.GA25283@telsasoft.com> (raw)
In-Reply-To: <CALhvPTS5ao9U33xo91UYPzQx2EXZex1Mbd3P9iX-GeVbd5VBPg@mail.gmail.com>
References: <CALhvPTQJ12d1VEOoekJNt6+zDuSfcubqP3WO47OiUXUVBR3o3g@mail.gmail.com>
	<CALhvPTS3XmDa7Px2WdZhyvwHPsqC=KKQ2kTsGL0KZiuwGF8C4g@mail.gmail.com>
	<8db7abc2-9ddf-858c-e3db-af014cf2ccd9@2ndquadrant.com>
	<CALhvPTRnqLoS-XAo1MAJEGM=0KuxVua_ATmigELh8EtVhqSjxQ@mail.gmail.com>
	<20181105041009.GY25283@telsasoft.com>
	<CALhvPTS5ao9U33xo91UYPzQx2EXZex1Mbd3P9iX-GeVbd5VBPg@mail.gmail.com>

On Mon, Nov 05, 2018 at 03:04:29PM +0800, Richard Lee wrote:
> Executed perf-record and perf-report:
> -bash-4.2$ perf record -g -- psql -U sri sri <
> /var/lib/pgsql/10/data/pg_log/1-b10/query.txt
> < ... snipped ... >

That's showing perf output for the psql client.  What you want is output for
the server process (essentially all the client does is move data between the
user to the server).

https://wiki.postgresql.org/wiki/Profiling_with_perf

Justin




view thread (8+ messages)  latest in thread

Message-ID: <20181105135519.GA25283@telsasoft.com>
Permalink:  ../20181105135519.GA25283@telsasoft.com/
Also on:    postgresql.org/message-id/20181105135519.GA25283@telsasoft.com

 · 

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: pryzby@telsasoft.com, swift1984@gmail.com, tomas.vondra@2ndquadrant.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Fwd: Query with high planning time compared to execution time
  In-Reply-To: <20181105135519.GA25283@telsasoft.com>

* 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