Re: [PATCH] Add features to pg_stat_statements

btkatsuragiyu <btkatsuragiyu@oss.nttdata.com>

From: Katsuragi Yuta <btkatsuragiyu@oss.nttdata.com>
To: legrand legrand <legrand_legrand@hotmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2020-09-25T05:46:00Z
Lists: pgsql-hackers
On 2020-09-24 18:55, legrand legrand wrote:
> Not limited to 3, Like an history table.
> 
> Will have to think if data is saved at shutdown.

Thanks.

This design might introduce some additional complexity
and things to be considered.
For example, the maximum size of "history table",
how to evict entries from the history table and how to manage
the information maintained by evicted entries.

Also, providing a history table looks similar to logging.

Providing the original view (# of dealloc and last_dealloc ts)
and optional logging looks a simple and better way.

Regards,
Katsuragi Yuta



Commits

  1. pg_stat_statements: Track number of times pgss entries were deallocated.