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 1kdXC8-00089D-7K for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 11:24:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdXC7-0004Tj-5F for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 11:24:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdXC6-0004Tb-Tm for pgsql-hackers@lists.postgresql.org; Fri, 13 Nov 2020 11:24:42 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kdXC4-0008W3-LH for pgsql-hackers@postgresql.org; Fri, 13 Nov 2020 11:24:41 +0000 Received: by mail-pf1-x430.google.com with SMTP id w14so7372531pfd.7 for ; Fri, 13 Nov 2020 03:24:40 -0800 (PST) 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=k2hjz61+R+THG8CRmEnbqr6WZSog7tPL8Xrv+hRTy1w=; b=GvfQI8WQ97CsdcK64/26t76AmS2EC9cd/tvyoj5d7/MKnKuDbhKlspk4FZP5usKEUn FBz+h7hhD+5ZmUfc6T7xbYNGwsye1yU0+xkx1+DT6IGfuW5sD6yj0T1cbDLIYl2mq+Dc MG34KY+b4BUiJqPQRpZfW5ZR/9P+6Px41eb8IrjCEfTd85SQDP4uDkBjLIzh7XDRtbVD eoEZd/Z/XtBxH1EOI96n8ASmgcBAal1jZN54ZfntspMABZpNB+R8MB2XQOBf1wajGZZI hvKS+RbtQT+ZQPJMpvr1PgI2F7IFmwLqBPbTzJU3ln960UcB7zN/t32P1eSdjT/zl/rN tRMw== 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=k2hjz61+R+THG8CRmEnbqr6WZSog7tPL8Xrv+hRTy1w=; b=VNCUfmsERcqBltKviq9m7nBl/MlhjeWaEsDAPkfbOjOpL2QlaDnuVtjkl2MBcgLhy3 e0DYIe4IMnntZf6UhPUE2bMJECVrPwHztI2i4T03bY80sCY45owxeuG0D8QvNlv1BPyn arqnbXFnS2lsBWfadAFeRHDdLyuhd3I7c7Akm/d0xZse5nH4ROmXS+HaodSJal5bfqD8 pk/yDO3aHBaYgeCnbUJk1ekax4+AVotwtm7zkCie3eYAt9je0bRGK9ToLA8DRaQeBWMp INmZ2UNopAAcfsULhXGUuFcBxegbX/DlaF7DkuZXiND//CVXVSuExAo2OHUHu2KCcgt3 UVlw== X-Gm-Message-State: AOAM533ybYCXyuo7O7b8kUvV85pi3eZ9BqTFaUNwS4HD0I8bv28GFFqZ CSx1rhLNSiH/PgBWB5eWxx6knSTLPsejLEz6EGmPbpFI3To= X-Google-Smtp-Source: ABdhPJzMYwcvfW51XUsUUy4rSvRO/Blbe9+RwSFaGmBx5TMxf8qCsivHnfj4ljDV4K4u0mKqsm0Y9I0a8ZzwwXca4w8= X-Received: by 2002:aa7:9983:0:b029:18b:a0bb:4c70 with SMTP id k3-20020aa799830000b029018ba0bb4c70mr1637917pfh.31.1605266679568; Fri, 13 Nov 2020 03:24:39 -0800 (PST) MIME-Version: 1.0 References: <20201105.121206.819769369617763972.horikyota.ntt@gmail.com> <20201110.161740.1341818036035711165.horikyota.ntt@gmail.com> <763d6041-49d3-96b2-d0ec-f56e676a5156@oss.nttdata.com> In-Reply-To: <763d6041-49d3-96b2-d0ec-f56e676a5156@oss.nttdata.com> From: Bharath Rupireddy Date: Fri, 13 Nov 2020 16:54:28 +0530 Message-ID: Subject: Re: Use standard SIGHUP and SIGTERM handlers in autoprewarm module To: Fujii Masao Cc: Kyotaro Horiguchi , PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 12, 2020 at 10:06 AM Fujii Masao wrote: > > Thanks for the analysis! I pushed the patch. > Thanks! Since we are replacing custom SIGHUP and SIGTERM handlers with standard ones, how about doing the same thing in worker_spi.c? I posted a patch previously [1] in this mail thread. If it makes sense, please review it. [1] - https://www.postgresql.org/message-id/CALj2ACXDEZhAFOTDcqO9cFSRvrFLyYOnPKrcA1UG4uZn9hUAVg%40mail.gmail.com With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com