From: | Muhammad Ikram <me(dot)mikram(at)gmail(dot)com> |
---|---|
To: | Loles <lolesft(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: work_mem memory usage statistics |
Date: | 2024-10-16 03:37:27 |
Message-ID: | CAJQ7xG4BV_fbB06=OSRKFq0JaQ2GW0mK11J_yxuSSri15TzQ7Q@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
- No built-in routine or extension is there to show aggregation of work_mem
for any query, as it is dynamically allocated.
- If work_mem requirement exceeds then it spills to disk, which can be
monitored through logs. Use log_temp_files and log_statement_stats to see
temp files, their size may give clues.
- pg_stat_statements and pg_stat_activity may also help in getting an idea
about which queries are taking more time and their consumption of shared
blocks etc.
Regards,
Ikram
On Tue, Oct 15, 2024 at 11:46 PM Loles <lolesft(at)gmail(dot)com> wrote:
> Hi team,
>
> Is there any statistics table or view in the PostgreSQL catalog,
> extension, or similar that collects and displays work_mem memory usage
> statistics? It would be interesting to know the use of the work_mem by
> user, application and/or database.
>
> Thanks in advance.
>
> Loles
>
From | Date | Subject | |
---|---|---|---|
Next Message | SOzcn | 2024-10-16 07:58:36 | Backup Information |
Previous Message | Loles | 2024-10-15 18:45:30 | work_mem memory usage statistics |