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 1iUe3F-0006qY-WF for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Nov 2019 21:50:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUe3E-0001Ki-Fp for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Nov 2019 21:50:16 +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 1iUe3E-0001Kb-3Y for pgsql-hackers@lists.postgresql.org; Tue, 12 Nov 2019 21:50:16 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iUe3B-0000N0-Oh for pgsql-hackers@lists.postgresql.org; Tue, 12 Nov 2019 21:50:14 +0000 Received: by mail-qv1-xf43.google.com with SMTP id y18so7078037qve.2 for ; Tue, 12 Nov 2019 13:50:13 -0800 (PST) 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=O+FHB+iwUUF2/AnZDb9Fl3KYB8BDzAuP77jG9Mgm1dA=; b=QzdAGPajU+emgYuzpRCOEKVct5hBALccBloDGIhFHadTZ7NzGVj5kiJ3ofi69BFPgw uxrVUZv+pCSa1TDVaR7f7DMNfpG2mMIbagRr7C6jwz7ozU6LJAqBO+p+QyW5Au0RmbrD 5I+VnzCSW/TVCXL3Aw5GHOdoExVkYbktEf0EiDqoFItn4/L/a3cKqwj1F6SppvLMJ2TL 1ILRVXu5F2B5p3eyVLFnwlfyMFcLFf1DLCOAoP4tL/8I70c4rLTA6NDKe+/OF+lSgY3h QYzpW4JXfPj1DR/yw89dwKWGy0w7zHumhO6yZnpAyZ1AX4pnL3/3g6/8t7A9JcYy/yfV TFaw== 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=O+FHB+iwUUF2/AnZDb9Fl3KYB8BDzAuP77jG9Mgm1dA=; b=s4yv8lAU4GqFgSUTkYHAcaJ2k3PSow+aiALBTSGCZFoX50z86Avnw76Y+KyJLt/PyC NjO2StLxsZ+M5DM/OOKyV11pqAD6Z54WetTehr2vfOYXPoc8qCmyj6gZeLzyVPKq9bJ9 gJLW9QIe8x7vy0qcC34QYGq0Hrz60aCfvLBnu344uyzVBphIRlpDXDQXAaGpMKUG1x0R rVHEhNYhDzNboyGtUcogKE+klGlVjlPHCyVD2UHISKs/STuKEUgtcUG5wtFj/PPBZJKN p5OfMZ+nY8rMEzelIKGy+qw56CQWYiWJgVHCCjiVMTw24/4NQ+JTKtC6DF8MSfskijuw ygfw== X-Gm-Message-State: APjAAAVm84h/Ui9jjGF8+9x/M/nd3OtIsl6Zymq62cRh70YMcCfsndY6 fX0WaWs5rVloZcSqrTgLINgjEQ== X-Google-Smtp-Source: APXvYqy2jmDaNidCQ0rDfqxYl/q0GNXK/vg6FrJZrORnpK5krSs7eM2YuMeJvjPcvsiCV0RYu6wgxw== X-Received: by 2002:ad4:57a7:: with SMTP id g7mr30950639qvx.30.1573595412958; Tue, 12 Nov 2019 13:50:12 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([172.98.67.40]) by smtp.gmail.com with ESMTPSA id r2sm80573qtc.28.2019.11.12.13.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 13:50:12 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6487C300AAD; Tue, 12 Nov 2019 18:50:08 -0300 (-03) Date: Tue, 12 Nov 2019 18:50:08 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Robert Haas , PostgreSQL Hackers , Kuntal Ghosh Subject: Re: auxiliary processes in pg_stat_ssl Message-ID: <20191112215008.GA607@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191104160605.GC6962@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-04, Stephen Frost wrote: > Based on what we claim in our docs, it does look like 'client_port IS > NOT NULL' should work. I do think we might want to update the docs to > make it a bit more explicit, what we say now is: > > TCP port number that the client is using for communication with this > backend, or -1 if a Unix socket is used > > We don't explain there that NULL means the backend doesn't have an > external connection even though plenty of those entries show up in every > instance of PG. Perhaps we should add this: > > If this field is null, it indicates that this is an internal process > such as autovacuum. > > Which is what we say for 'client_addr'. Seems sensible. Done. Thanks -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services