Re: How Do You Associate a Query With its Invoking Procedure?

From: Patrick Molgaard <draaglom(at)gmail(dot)com>
To: Fred Habash <fmhabash(at)gmail(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: How Do You Associate a Query With its Invoking Procedure?
Date: 2018-09-15 09:24:30
Message-ID: CA+Zan4uSxucb2E5hZXqXXkfAL2-ZDttdb6sRJU4zdR2KimfvHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

You might find application-level tracing a more practical answer - e.g.
check out Datadog APM for a (commercial) plug and play approach or Jaeger
for a self-hostable option.

Patrick
On Fri, Sep 14, 2018 at 4:38 PM Fred Habash <fmhabash(at)gmail(dot)com> wrote:

> Any ideas, please?
>
> On Thu, Sep 13, 2018, 3:49 PM Fd Habash <fmhabash(at)gmail(dot)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
>>
>>
>>
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message padusuma 2018-09-15 17:00:03 Re: Performance of INSERT into temporary tables using psqlODBC driver
Previous Message Roman Konoval 2018-09-14 18:18:55 Re: How Do You Associate a Query With its Invoking Procedure?