Re: How Do You Associate a Query With its Invoking Procedure? - Mailing list pgsql-performance

From Fred Habash
Subject Re: How Do You Associate a Query With its Invoking Procedure?
Date
Msg-id CADpeV5xXCfvkc5acofF-_MTD5T=b=xYS3Wi1Dayys_XsaO+25w@mail.gmail.com
Whole thread Raw
In response to How Do You Associate a Query With its Invoking Procedure?  (Fd Habash <fmhabash@gmail.com>)
Responses Re: How Do You Associate a Query With its Invoking Procedure?
List pgsql-performance
Any ideas, please? 

On Thu, Sep 13, 2018, 3:49 PM Fd Habash <fmhabash@gmail.com> wrote:

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

 

pgsql-performance by date:

Previous
From: Tim Cross
Date:
Subject: Re: Performance of INSERT into temporary tables using psqlODBC driver
Next
From: "David G. Johnston"
Date:
Subject: Re: How Do You Associate a Query With its Invoking Procedure?