Re: Use a signal to trigger a memory context dump?

From: "MauMau" <maumau307(at)gmail(dot)com>
To: "Andres Freund" <andres(at)2ndquadrant(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use a signal to trigger a memory context dump?
Date: 2014-06-23 16:22:26
Message-ID: C8E42E93151D4E7E985259A803F18C38@maumau
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From: "Andres Freund" <andres(at)2ndquadrant(dot)com>
> I wonder if it'd make sense to allow a signal to trigger a memory
> context dump? I and others more than once had the need to examine memory
> usage on production systems and using gdb isn't always realistic.

+1

It would be nice if there's a generic infrastructure on which the DBA can
get information of running backends. I wish for a functionality to dump
info of all backends with a single operation as well as one backend at a
time, because it would be difficult to ask for users to choose a specific
backend or operate on all backends, especially on Windows. The candidate
info are:

* memory context

* stack trace: I'd like to implement this.

* GUC settings: to know that backends are running with intended settings.

* prepared statements (= pg_prepared_statements): to know if applications
are taking advantage of prepared statements for performance.

Regards
MauMau

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-06-23 16:28:19 Re: Atomics hardware support table & supported architectures
Previous Message Robert Haas 2014-06-23 16:21:35 Re: SQL access to database attributes