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 1i5X2H-0004Ik-92 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 15:17:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5X2G-0002z1-2c for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 15:17:28 +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 1i5X0b-0007qO-2U for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2019 15:15:45 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5X0X-0005nn-Pf for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2019 15:15:44 +0000 Received: by mail-qt1-x841.google.com with SMTP id y26so24843627qto.4 for ; Wed, 04 Sep 2019 08:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=iNqtD2txvVWrD1wDxMrhpS1hZMWof0A/UclYcwRuHSA=; b=10Tkyi3GH5V+hqX2UPHdKI14tTj9t+JMTA1pBL9vxnZxZRALc0w0ZzaeE8nQtI5jv5 H/XM4zoVSfbSEJYh8sI7/v2BUgbIKQAud5n/9qCtdk0Nrrcsi6rR1YRE5fVyz9TbDjZs ue5Qi4qclfCRI4k0qLKKdf+0Lm3QBTxGUNqlFq86wzE6uJaKJwkrFqgntxbjHY4NSamq aF0ByCfEhRBSa3il9B01V241FUbYfYXFuOnr5aARWqRvje1wjKWKYvh//0ErxZarm9mC RDeijODbCsrixIv+/GHiTkrpdFSBcvZPmYg8HD6MuDaY3IDRs9HXXnmD/fp6MrTYaTUM UfEA== 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:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=iNqtD2txvVWrD1wDxMrhpS1hZMWof0A/UclYcwRuHSA=; b=N2OSzrfSZqOEatesEGefftsCBrSPe/RGCK0cG/1Sn+JCd54QVhwWUePz1Qr3RL5WHC g2HDJq+G9JgcbFKnPY+nquj8nylTwH4wbAFA45f4kHwkKu0wUXgvzaxALabMcdw1zLQd NUB+s5a8yDun1MHiobGXmW6/5Ztlm3OnxB6l6/DlxYqkhgNWtebs0EnXoLMnTorKwLDY 1F4GgNVj6ovlh5Q5Y7dOSh2Gfe0ioa2DUOVbrg8qXT89ToPfXtmKY6HV2VQ6Eav1R6Dr H54IXY9AeRd5z5S6USRYuyp1NVrm8G/dlXY0lEoEiB/6XH463Tfuh2qsg/il1eJ6RJ+a MmlQ== X-Gm-Message-State: APjAAAXyhdGGmLcp/gF4tK1/U5H6XaiCOolLK8DZTCZHmqfnWYcxek/k AfJt9NBke1lvLukpGCnlRstkTcyVwDogm902msZesR80Z2oiAiqY32OLGgfjtxfIJFmXkDh96EU VMYqSplKOK3imKk+SAxE4RgWc5i3nwWa2dyxCgWQe/zScsc2+K+cZKhPmNXZEy9+eCPwH64dxN+ TuolecOs61IbAstrPg X-Google-Smtp-Source: APXvYqysV4c33e/LvCBfdclbFR+ULzEmkDsA7vyCNC4JNfqKr+VsjmMd90xCLsw8bGGfv8/U47X9qA== X-Received: by 2002:a05:6214:15d1:: with SMTP id p17mr14179488qvz.74.1567610138881; Wed, 04 Sep 2019 08:15:38 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id b123sm10705036qkf.85.2019.09.04.08.15.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 08:15:38 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 045F81209C5; Wed, 4 Sep 2019 11:15:36 -0400 (-04) Date: Wed, 4 Sep 2019 11:15:35 -0400 From: Alvaro Herrera To: pgsql-hackers@lists.postgresql.org Subject: auxiliary processes in pg_stat_ssl Message-ID: <20190904151535.GA29108@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I just noticed that we list auxiliary processes in pg_stat_ssl: 55432 13devel 28627=# select * from pg_stat_ssl ; pid │ ssl │ version │ cipher │ bits │ compression │ client_dn │ client_serial │ issuer_dn ───────┼─────┼─────────┼────────────────────────┼──────┼─────────────┼───────────┼───────────────┼─────────── 28618 │ f │ │ │ │ │ │ │ 28620 │ f │ │ │ │ │ │ │ 28627 │ t │ TLSv1.3 │ TLS_AES_256_GCM_SHA384 │ 256 │ f │ │ │ 28616 │ f │ │ │ │ │ │ │ 28615 │ f │ │ │ │ │ │ │ 28617 │ f │ │ │ │ │ │ │ (6 filas) 55432 13devel 28627=# select pid, backend_type from pg_stat_activity ; pid │ backend_type ───────┼────────────────────────────── 28618 │ autovacuum launcher 28620 │ logical replication launcher 28627 │ client backend 28616 │ background writer 28615 │ checkpointer 28617 │ walwriter (6 filas) But this seems pointless. Should we not hide those? Seems this only happened as an unintended side-effect of fc70a4b0df38. It appears to me that we should redefine that view to restrict backend_type that's 'client backend' (maybe include 'wal receiver'/'wal sender' also, not sure.) -- Álvaro Herrera http://www.twitter.com/alvherre