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

From Fd Habash
Subject How Do You Associate a Query With its Invoking Procedure?
Date
Msg-id 5b9abf54.1c69fb81.8e0e4.9e2d@mx.google.com
Whole thread Raw
Responses Re: How Do You Associate a Query With its Invoking Procedure?  (Fred Habash <fmhabash@gmail.com>)
Re: How Do You Associate a Query With its Invoking Procedure?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: How Do You Associate a Query With its Invoking Procedure?  (Roman Konoval <rkonoval@gmail.com>)
List pgsql-performance

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: Andres Freund
Date:
Subject: Re: Select count(*) on a 2B Rows Tables Takes ~20 Hours
Next
From: Tim Cross
Date:
Subject: Re: Performance of INSERT into temporary tables using psqlODBC driver