pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fd Habash <fmhabash@gmail.com>
To: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: How Do You Associate a Query With its Invoking Procedure?
Date: Thu, 13 Sep 2018 15:49:41 -0400
Message-ID: <5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.com> (raw)

In API function may invoke 10 queries. Ideally, I would like to know what queries are invoked by it and how long each took. 

I’m using pg_stat_statement. I can see the API function statement, but how do I deterministically identify all queries invoked by it?


----------------
Thank you

view thread (7+ messages)  latest in thread

Message-ID: <5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.com>
Permalink:  ../5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.com/
Also on:    postgresql.org/message-id/5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.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: fmhabash@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: How Do You Associate a Query With its Invoking Procedure?
  In-Reply-To: <5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.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