Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltNBM-0003H0-JZ for pgsql-committers@arkaria.postgresql.org; Wed, 16 Jun 2021 04:29:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltNBL-0001pq-IW for pgsql-committers@arkaria.postgresql.org; Wed, 16 Jun 2021 04:29:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltNBL-0001pi-Cw for pgsql-committers@lists.postgresql.org; Wed, 16 Jun 2021 04:29:39 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltNBF-000222-8s for pgsql-committers@lists.postgresql.org; Wed, 16 Jun 2021 04:29:39 +0000 Received: from hnk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id C06626050F; Wed, 16 Jun 2021 13:29:29 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at oss.nttdata.com Subject: Re: pgsql: Make archiver process an auxiliary process. To: Thomas Munro , Fujii Masao Cc: pgsql-committers References: From: Fujii Masao Message-ID: Date: Wed, 16 Jun 2021 13:29:29 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021/06/12 19:36, Thomas Munro wrote: > On Mon, Mar 15, 2021 at 5:14 PM Fujii Masao wrote: >> Make archiver process an auxiliary process. >> >> This commit changes WAL archiver process so that it's treated as >> an auxiliary process and can use shared memory. This is an infrastructure >> patch required for upcoming shared-memory based stats collector patch >> series. These patch series basically need any processes including archiver >> that can report the statistics to access to shared memory. Since this patch >> itself is useful to simplify the code and when users monitor the status of >> archiver, it's committed separately in advance. > > I think this needs to handle ProcSignalBarrierPending. Otherwise, > code that tries to use proc signal barriers (like CF #2962 and #2602) > might hang forever when an archiver is running. Thanks for the comment! I will investigate this. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION