Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBeJ0-0002CB-M0 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 12:48:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBeIy-0000LK-DG for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 12:48:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBeIy-0000LC-0x for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2020 12:48:16 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jBeIv-0007XO-5j for pgsql-hackers@postgresql.org; Tue, 10 Mar 2020 12:48:15 +0000 Received: by mail-qv1-xf44.google.com with SMTP id r15so5993870qve.3 for ; Tue, 10 Mar 2020 05:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MlGtMJC2/RZt2uq82AEg22cJiqaU8JwXdQu+xT+xtNE=; b=FNI8vjqV8yKDBxfLLrcaU+3DJxyEFDiRhCy0jqY7AcXWzCLhv8fqjqKVmahH02IylA A0xT12S7az97Xub9H7ebRBcVXcp5mhQr02FruNehwLoDOyxLmVxfgJJqaQvZrhYC/d5a Wkiyp6MDNrIlCrNw4lWHww/XFhpoKotVGKkoy12Uqime0iQArleTND8dUJt2D4Qji385 d1aEfk8e9Fknhlk/lcaa1Dg1e5xDLGWiGQq+k+vrknFacc52TfUkn5uZLhIV58scO/Pc g0TMyR3+hbVdvzuuoyHEtEppUQxW/izC5a9IV51VDp9lWlo8jpf8JoM7TZDtwH8MK88d Wxtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MlGtMJC2/RZt2uq82AEg22cJiqaU8JwXdQu+xT+xtNE=; b=rGTzqk2UkVpUq+cJ4O/aXn77Adhjaj8wKS3gAFzuaGBA0A95YBMUwJZS8c2z9+Dp6S ihEbetw4iGgyLFWMKhKJlxTBzi8N/gTKaxpDePLcH5jcNHFGWt7dhkw6BdR6Yf45ZJ34 KOA/zE9h3gvfI7I5Q0wCPs5NJdHegx0foojrTUp+FZLaS6BJd+yXeFJJG7F1ommMyVZr KPjGz05uVQ6IBkTdYFmAYy9rXHhv6VC5Rk+AT8L9paLQUThs9hBlrYzTb1grnEGwyKKD Bu/iaX0JRRnQFkKedgV09eFZWIOzGDUuihIJTE47vTYP55leulTLbagPL+kFH2uPDfxH 2y+w== X-Gm-Message-State: ANhLgQ2iiE6GnlgBsCLvJSqdFdGzcf0KPyP3jXhz7zgIkQM9d8/I2DDv m3GknanwsE9D3XKxyCmVs9oMZw== X-Google-Smtp-Source: ADFU+vuExAIBfdSUBN2Eq3E1bGl5eMf61XTaDjSRYXyWVGGOv1ASjan0MLk/s6gkFcbmvZyVT11DQQ== X-Received: by 2002:a0c:f60e:: with SMTP id r14mr5458919qvm.43.1583844490576; Tue, 10 Mar 2020 05:48:10 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id f22sm2448381qto.79.2020.03.10.05.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 05:48:09 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id AAAFD3008DB; Tue, 10 Mar 2020 09:48:07 -0300 (-03) Date: Tue, 10 Mar 2020 09:48:07 -0300 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, michael@paquier.xyz, thomas.munro@gmail.com, tomas.vondra@2ndquadrant.com, a.zakirov@postgrespro.ru, ah@cybertec.at, magnus@hagander.net, robertmhaas@gmail.com, pgsql-hackers@postgresql.org Subject: Re: shared-memory based stats collector Message-ID: <20200310124807.GA29194@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200310.151121.615486127876459186.horikyota.ntt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-10, Kyotaro Horiguchi wrote: > At Mon, 9 Mar 2020 20:34:20 -0700, Andres Freund wrote in > > On 2020-03-10 12:27:25 +0900, Kyotaro Horiguchi wrote: > > > That's true, but I have the same concern with Tom. The archive bacame > > > too-tightly linked with other processes than actual relation. > > > > What's the problem here? We have a number of helper processes > > (checkpointer, bgwriter) that are attached to shared memory, and it's > > not a problem. > > That theoretically raises the chance of server-crash by a small amount > of probability. But, yes, it's absurd to prmise that archiver process > crashes. The case I'm worried about is a misconfigured archive_command that causes the archiver to misbehave (exit with a code other than 0); if that already doesn't happen, or we can make it not happen, then I'm okay with the changes to archiver. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services