I recently built a database monitoring plugin for postgresql that queries the pg_stat and pg_statio tables in postgresql. I want to understand/test how my plugin might affect my database but fear that if i just turned my plugin on my database, my database may crash and burn... I was hoping that someone could suggest some testing methods or answer some of my questions/concerns below:
1) I was wondering if these monitoring queries would cause my other non-monitoring queries (which I assume also need to write to the pg_statio tables to update these statistics) to lock up.
2) Is there a way for me to capture database traffic on a postgresql database table so I can maybe replay this traffic on a copy of the database?