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 1kPgCJ-0004iP-Ht for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 06:11:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPgCI-0007pc-6Q for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 06:11:38 +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 1kPgCH-0007pU-T3 for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 06:11:37 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kPgCA-0004Sd-M5 for pgsql-hackers@postgresql.org; Tue, 06 Oct 2020 06:11:37 +0000 Received: by mail-ed1-x543.google.com with SMTP id b12so12243553edz.11 for ; Mon, 05 Oct 2020 23:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lwgjEwbsYqg9gbAdbsL3Rni5yZBxxgAZK4CHJy54gi0=; b=KXK5g1RIutHCykwWbaQ4vyZHVczejWISFirJjvlffuoLKdK34cHzAnDe3/pBuQayzI m3RWwXaiGGLPCo8jV96xzsBwik8D0tNGu/iZ9L2+7D8pa3hh/yLaYylVkMEDqck8ELyc 0N0jQJH5e+ndh40HU3fL7iqnzxRnQQ5nXZgW/QcCuc+ko5c3hWb507ZVZ3GA4jUBAtG9 6eDlMaTl8B0VT3kgxeeXjtuhKiw3X/VakUROgCkCy7TcKJCEE0AHi2cMYdQ//NJaQHex sSk0xcSmAsH532mi/NAThZ0KmKWdsv/PMhve5+FiDAksAVFraqrPFpTZJb/umK1O+MUV fw7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lwgjEwbsYqg9gbAdbsL3Rni5yZBxxgAZK4CHJy54gi0=; b=HgQ3OESlZtbx+uelDtYNcHzGoscrXNmhB+XDxvtF2MFgDV9+d5Brh8GA0NMj9KsVK9 dryzdNaxZWZV6OadCuP/wl7bUPUHT5T2Zwsmt26R53pWQwFRwfVWl08mbGH+L1Jf498d IkZf03TDghdZ6DKiOwAt/2xyXf4PZqnTxUdpJa/UuQgoNULuFKtjreK6Nswaf+2GigOc Gmr+6D9PBWDQE0YKwgubFAXENFaaceSZw/rLmpjCYpaDLnDISCFGxryO5EEkonkrwixj EbcctirGV5ciKFJhiRNzgTwuHhQ1hsHnoXJO86yQ8qq7oWMI4UdxYor+qsHg3eK+dIp+ kZUQ== X-Gm-Message-State: AOAM532EYm6i+krMFOmvxtn/klxxBhXg1njjljr4uzT1i/stqjfI8INw InvwvPh6iM9HmFGTWNc4DS+bByR++i9qliSA0V8f0uLboWw= X-Google-Smtp-Source: ABdhPJwyRuuATjv+M6dueefsLMJbB9j3k/M3MIXI9KzCF9Ofk1lNNMbbCgMMj8mAvvFp1gFTWADdei6hBaPrKVPSvBQ= X-Received: by 2002:a50:d84f:: with SMTP id v15mr3511884edj.61.1601964689777; Mon, 05 Oct 2020 23:11:29 -0700 (PDT) MIME-Version: 1.0 References: <13156732-5189-af54-3d28-e2ee2a8568e0@oss.nttdata.com> <069fb3bc-3907-4d85-19fd-e4b2d2f004b4@oss.nttdata.com> In-Reply-To: <069fb3bc-3907-4d85-19fd-e4b2d2f004b4@oss.nttdata.com> From: Bharath Rupireddy Date: Tue, 6 Oct 2020 11:41:18 +0530 Message-ID: Subject: Re: Use standard SIGHUP and SIGTERM handlers in autoprewarm module To: Fujii Masao Cc: PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Oct 6, 2020 at 11:20 AM Fujii Masao wrote: > > >> > >> Probably we can also replace sigHupHandler() in syslogger.c with > >> SignalHandlerForConfigReload()? This would be separate patch, though. > >> > > > > +1 to replace sigHupHandler() with SignalHandlerForConfigReload() as > > the latch and the functionality are pretty much the same. > > > > WalReceiverMai(): I think we can also replace WalRcvShutdownHandler() > > with SignalHandlerForShutdownRequest() because walrcv->latch point to > > &MyProc->procLatch which in turn point to MyLatch. > > > > Thoughts? If okay, we can combine these into a single patch. I will > > post an updated patch soon. > > +1 Or it's also ok to make each patch separately. > Anyway, thanks! > Thanks. +1 to have separate patches. I will post two separate patches for autoprewarm and WalRcvShutdownHandler for further review. The other two patches can be for startup.c and syslogger.c. With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com