All great ideas.I was thinking something similar to some other RDBMS engines where SQL is automatically tied to the invoking PROGRAM_ID with zero setup on the client side. I thought there could be something similar in PG somewhere in the catalog.
As always, great support. This level of support helps a lot in our migration to Postgres. 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 Any ideas, please?
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
|