pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_stat_statements: can we extend the object names to the qualified names?
Date: Tue, 27 Nov 2018 14:10:09 -0700 (MST)
Message-ID: <1543353009578-0.post@n3.nabble.com> (raw)
In-Reply-To: <372d75cc-053b-1a07-948f-089408d3cd3a@gmail.com>
References: <372d75cc-053b-1a07-948f-089408d3cd3a@gmail.com>

A part of the answer would be to store
explain (verbose on) select count(*) from t1;
result in pg_stat_statements for the corresponding query...

(Verbose On) gives the "qualified names":

 QUERY PLAN
---------------------------------------
Aggregate  (cost=19.38..19.39 rows=1 width=8)
   Output: count(*)
   ->  Seq Scan on s1.t1  (cost=0.00..17.50 rows=750 width=0)                                                                                        
         Output: a1, a2, a3, a4, a5, a6


Extension pg_store_plans
https://github.com/ossc-db/pg_store_plans
can do it.

Extesion auto_explain can help also.

There are also some tryies to extend pg_stat_statements 
with plans see 
https://www.postgresql-archive.org/FEATURE-PATCH-pg-stat-statements-with-plans-td5940964.html

Regards
PAscal






--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




view thread (6+ messages)  latest in thread

Message-ID: <1543353009578-0.post@n3.nabble.com>
Permalink:  ../1543353009578-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1543353009578-0.post@n3.nabble.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 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: legrand_legrand@hotmail.com
  Subject: Re: pg_stat_statements: can we extend the object names to the qualified names?
  In-Reply-To: <1543353009578-0.post@n3.nabble.com>
  References: <372d75cc-053b-1a07-948f-089408d3cd3a@gmail.com> <1543353009578-0.post@n3.nabble.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