pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: torikoshia <torikoshia@oss.nttdata.com>
To: Georgios Kokolatos <gkokolatos@protonmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Get memory contexts of an arbitrary backend process
Date: Thu, 3 Dec 2020 10:10:06 +0900
Message-ID: <d42d3186-d647-9af4-7c1c-d6ffca8bff40@oss.nttdata.com> (raw)
In-Reply-To: <064d510f2d33edc37dfd6b8f3b6bd30e@oss.nttdata.com>
References: <0271f440ac77f2a4180e0e56ebd944d1@oss.nttdata.com>
	<270ec80dbbebfb5c6f2b9fdd7a7858b5@oss.nttdata.com>
	<160502083340.7362.4386116585349115146.pgcf@coridan.postgresql.org>
	<064d510f2d33edc37dfd6b8f3b6bd30e@oss.nttdata.com>



On 2020/11/16 19:58, torikoshia wrote:
> On 2020-10-28 15:32, torikoshia wrote:
>> On 2020-10-23 13:46, Kyotaro Horiguchi wrote:
> 
>>> I think we might need to step-back to basic design of this feature
>>> since this patch seems to have unhandled corner cases that are
>>> difficult to find.
> 
> I've written out the basic design below and attached
> corresponding patch.

I'm starting to study how this feature behaves. At first, when I executed
the following query, the function never returned. ISTM that since
the autovacuum launcher cannot respond to the request of memory
contexts dump, the function keeps waiting infinity. Is this a bug?
Probably we should exclude non-backend proceses from the target
processes to dump? Sorry if this was already discussed.

     SELECT pg_get_backend_memory_contexts(pid) FROM pg_stat_activity;


Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (52+ messages)  latest in thread

Message-ID: <d42d3186-d647-9af4-7c1c-d6ffca8bff40@oss.nttdata.com>
Permalink:  ../d42d3186-d647-9af4-7c1c-d6ffca8bff40@oss.nttdata.com/
Also on:    postgresql.org/message-id/d42d3186-d647-9af4-7c1c-d6ffca8bff40@oss.nttdata.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, torikoshia@oss.nttdata.com, gkokolatos@protonmail.com
  Subject: Re: Get memory contexts of an arbitrary backend process
  In-Reply-To: <d42d3186-d647-9af4-7c1c-d6ffca8bff40@oss.nttdata.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox