Is Dynamic Tracing in Postgres running on Ubuntu a good choice? - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Is Dynamic Tracing in Postgres running on Ubuntu a good choice?
Date
Msg-id CALj2ACV1Y7JbiSFQC2jseGV_TyArfe845zp2DHW7T57-qopJ1w@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

I'm exploring the Dynamic Tracing [1] facility that postgres provides and planning to set it up in a reliable way on postgres running on Ubuntu. It looks like SystemTap is available on Ubuntu whereas DTrace isn't. I have no experience in using any of these tools. I would like to hear from hackers who have knowledge in this area or set it up previously.

In general, I have the following questions:

1) Can the Dynamic Tracing reliably be used in production servers without impacting the performance? In other words, will the Dynamic Tracing incur extra costs(CPU or IO) that may impact the postgres performance eventually?
2) Does it fare better in terms of postgres observability? If yes, is it a better choice than the existing way that postgres emits server logs and provides stats via views, pg_stat_statements etc.?

My motivation is to see if Dynamic Tracing is a better way to get the important information out of a running postgres server.

Please provide your thoughts here?

[1] https://www.postgresql.org/docs/devel/dynamic-trace.html

Regards,
Bharath Rupireddy.

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: bogus: logical replication rows/cols combinations
Next
From: Tomas Vondra
Date:
Subject: Re: bogus: logical replication rows/cols combinations