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: bt21tanigaway@oss.nttdata.com
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Subject: Re: Fix pg_log_backend_memory_contexts() 's delay
Date: Mon, 11 Oct 2021 14:40:50 +0900
Message-ID: <2fc009b5-85f7-4a8f-c31f-fbcb11862aea@oss.nttdata.com> (raw)
In-Reply-To: <be62e009ba382a1744c5700df5428ac0@oss.nttdata.com>
References: <0aae3e074face409b35153451be5cc11@oss.nttdata.com>
	<CALj2ACVpGVeZw6OO8yeROcn9347kbEppph5Pc1WzJJx3EjXNyg@mail.gmail.com>
	<4055757.1633436879@sss.pgh.pa.us>
	<CA+TgmobT79Q+GL+0_350Cr8qHcraiN+siUJeR3oBoMbtfL4JZg@mail.gmail.com>
	<YVziXut4efh+jdxR@paquier.xyz>
	<1accf2ba3912f3f59a60ef90b5411433@oss.nttdata.com>
	<52ff4115-961c-7803-635f-d27b8e9b9ee2@oss.nttdata.com>
	<CALj2ACUU1HMKY-WqyOXw9qajWqAU-jHP+nxnUSC=Xqg0QH1-tg@mail.gmail.com>
	<be62e009ba382a1744c5700df5428ac0@oss.nttdata.com>



On 2021/10/11 14:28, torikoshia wrote:
> Thanks for the patch!
> 
> It might be self-evident, but since there are comments on other process handlings in HandleAutoVacLauncherInterrupts like below, how about adding a comment for the consistency?

+1

I applied such cosmetic changes to the patch. Patch attached.
Barring any objection, I will commit it and back-port to v14.

Regards,

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

Attachments:

fix_log_output_delay_v2.patch (text/plain, 565B) download diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index 3b3df8fa8c..96332320a7 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -836,6 +836,10 @@ HandleAutoVacLauncherInterrupts(void) if (ProcSignalBarrierPending) ProcessProcSignalBarrier(); + /* Perform logging of memory contexts of this process */ + if (LogMemoryContextPending) + ProcessLogMemoryContextInterrupt(); + /* Process sinval catchup interrupts that happened while sleeping */ ProcessCatchupInterrupt(); }

view thread (12+ messages)  latest in thread

Message-ID: <2fc009b5-85f7-4a8f-c31f-fbcb11862aea@oss.nttdata.com>
Permalink:  ../2fc009b5-85f7-4a8f-c31f-fbcb11862aea@oss.nttdata.com/
Also on:    postgresql.org/message-id/2fc009b5-85f7-4a8f-c31f-fbcb11862aea@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, torikoshia@oss.nttdata.com, bt21tanigaway@oss.nttdata.com, michael@paquier.xyz, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, bharath.rupireddyforpostgres@gmail.com
  Subject: Re: Fix pg_log_backend_memory_contexts() 's delay
  In-Reply-To: <2fc009b5-85f7-4a8f-c31f-fbcb11862aea@oss.nttdata.com>
  References: <0aae3e074face409b35153451be5cc11@oss.nttdata.com> <CALj2ACVpGVeZw6OO8yeROcn9347kbEppph5Pc1WzJJx3EjXNyg@mail.gmail.com> <4055757.1633436879@sss.pgh.pa.us> <CA+TgmobT79Q+GL+0_350Cr8qHcraiN+siUJeR3oBoMbtfL4JZg@mail.gmail.com> <YVziXut4efh+jdxR@paquier.xyz> <1accf2ba3912f3f59a60ef90b5411433@oss.nttdata.com> <52ff4115-961c-7803-635f-d27b8e9b9ee2@oss.nttdata.com> <CALj2ACUU1HMKY-WqyOXw9qajWqAU-jHP+nxnUSC=Xqg0QH1-tg@mail.gmail.com> <be62e009ba382a1744c5700df5428ac0@oss.nttdata.com> <2fc009b5-85f7-4a8f-c31f-fbcb11862aea@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