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.89) (envelope-from ) id 1iDEPP-00064p-M1 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 21:01:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDEPO-0006t4-JE for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 21:01:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDEPO-0006sx-80 for pgsql-hackers@lists.postgresql.org; Wed, 25 Sep 2019 21:01:10 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iDEPM-0006Ae-0B for pgsql-hackers@postgresql.org; Wed, 25 Sep 2019 21:01:09 +0000 Received: by mail-io1-xd44.google.com with SMTP id v2so519759iob.10 for ; Wed, 25 Sep 2019 14:01:07 -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=0DFnGFJsV8nov2QGKgU0M8TQMGfYtGrew8UM57pLjAk=; b=euLGUzmhUtjt1r2eG0T5qZLrbgWDP8nD05/zyO/Vf5AnsSTN5yWqypktx3C/YMNM6W BVPgNuWcHokn4uW/JtuUvIW5M0vOCigIvJVHaGT7MRDIiUl2eEY/HOVsAAofdGnNQg8V rd/LsNaVWP1D3FsGOJkN8cWDkg2gEB5atGdJim7n7MOwmu1tW1dbZUmpybiRCKX1jfI3 P70lJQGWUDSArMdc+6x1Mya3Zct8Se9CfjLrDGn0MU6sA9oE8G6Mg1ukjAhrLjeNGjVG xZYadUH8+vLl5dpBT+aIx0ipBBO7FBMWhOwIoc4XZCNNfKgVagg5zs797l0viWtnjqfe PYwA== 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=0DFnGFJsV8nov2QGKgU0M8TQMGfYtGrew8UM57pLjAk=; b=U3UIFf5+XEHxTqLiYAHBfjGUrTWnQAprjAc052m2uSKgDBRuHtJ9b1ygpkDX3Df0Y2 CYVFdhMCgiAg+SQLNP+CKucpTJNBkviKhE/SgSkw6NAzUwk+CXzAh6B6RvNfTzKre/Yy 0HqvwCp+cfcdB0t1gwPIsXjycFO1DgxPU36RYHSfjF5E3CereSmcxhpE0rpZoME681P/ Cceq4etQX3MkOt+O4DnF9C6Ccmg4wegxaIbqyfcG2Q2tPPPIKG1e8Z7XAcObLcghQv59 knXl8A7pEEXyESTfDpJLhx7ejP10dackpQfVSsKWp7T9Kje4GioRDMpSmAZIvlWimPXJ NsiA== X-Gm-Message-State: APjAAAUwwqgMi+w5VncqxjZX+qJmStqbWB+lPyXd+her8ZoABa+tmCQU 06FpXUnecVwdtUytLe5YSzE/Uw== X-Google-Smtp-Source: APXvYqwvJDU5mNdjij368q/sPyYMZeRyLZn1+76y3cbmEzCDVcaslL5lICB5wfBG00ZXFLvpVYShlA== X-Received: by 2002:a5e:8f01:: with SMTP id c1mr1540452iok.148.1569445267416; Wed, 25 Sep 2019 14:01:07 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([199.229.249.165]) by smtp.gmail.com with ESMTPSA id i26sm423981iol.84.2019.09.25.14.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 14:01:06 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id D279C1206A9; Wed, 25 Sep 2019 18:01:02 -0300 (-03) Date: Wed, 25 Sep 2019 18:01:02 -0300 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: thomas.munro@gmail.com, tomas.vondra@2ndquadrant.com, andres@anarazel.de, a.zakirov@postgrespro.ru, ah@cybertec.at, magnus@hagander.net, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org Subject: Re: shared-memory based stats collector Message-ID: <20190925210102.GA26396@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190910.175858.267726221.horikyota.ntt@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-10, Kyotaro Horiguchi wrote: > At Tue, 3 Sep 2019 18:28:05 -0400, Alvaro Herrera wrote in <20190903222805.GA13932@alvherre.pgsql> > > > Found a bug in initialization. StatsShememInit() was placed at a > > > wrong place and stats code on child processes accessed > > > uninitialized pointer. It is a leftover from the previous shape > > > where dsm was activated on postmaster. > > > > This doesn't apply anymore. Can you please rebase? > > Thanks! I forgot to post rebased version after doing. Here it is. > > - (Re)Rebased to the current master. > - Passed all tests for me. This seems to have very trivial conflicts -- please rebase again? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services