Using stat collector for collecting long SQL - Mailing list pgsql-hackers

From Pavel Stehule
Subject Using stat collector for collecting long SQL
Date
Msg-id CAFj8pRA=kdsqyKwYnEWXN7B6yontDfuQbAkgGh_9HDtVmhPKbg@mail.gmail.com
Whole thread Raw
Responses Re: Using stat collector for collecting long SQL  (legrand legrand <legrand_legrand@hotmail.com>)
Re: Using stat collector for collecting long SQL  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi

There is a often problem with taking source of long SQL strings. The pg_stat_activity field query is reduced to some short limit and is not too practical to increase this limit.

I have a idea to use for solution of this problem stat_collector process. When the query string is reduced, then full form of query string can be saved in stat_collector process. Maybe with execution plan. Then any process can read these information from this process.

What do you think about this idea? It can be base for implementation EXPLAIN PID ?

Notes, comments?

Regards

Pavel

pgsql-hackers by date:

Previous
From: Sandro Santilli
Date:
Subject: Re: [postgis-devel] About EXTENSION from UNPACKAGED on PostgreSQL 13
Next
From: Antonin Houska
Date:
Subject: Re: WIP: Aggregation push-down