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 1kelkr-0008PZ-Q0 for pgsql-admin@arkaria.postgresql.org; Mon, 16 Nov 2020 21:09:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kelkq-0006Oo-OW for pgsql-admin@arkaria.postgresql.org; Mon, 16 Nov 2020 21:09:40 +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 1kekrL-0005lx-H2 for pgsql-admin@lists.postgresql.org; Mon, 16 Nov 2020 20:12:19 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kekrJ-0005oW-9p for pgsql-admin@postgresql.org; Mon, 16 Nov 2020 20:12:18 +0000 Received: by mail-qk1-x730.google.com with SMTP id y197so18164987qkb.7 for ; Mon, 16 Nov 2020 12:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :to; bh=w4jvTBGuLhsrTtHI4IRH97garAEKj8lM2IDuMBdVDQQ=; b=WWxSSxBF0y6UvI9VfrhaN2/uRDAp7HOa3r/EE9SCld/9HYTa0ZeIAuIqEDndHAwO8o 5QO8OIpouLcAf2EdENfLn+pbzhq+J5e2jHcqRHZ+rjvnXdsP1pIFhdesXVw5D5J3rVHt 8TheBxnrRAEgQ34KF/ljoIWoE5flXdNIfgxud9yxMl1ocfiVz3aY7wJca2RORS33pJ8B g1brQ1pSh7xIfEBMZ/aHNC96BNwEJDa1mqI75vn6B6LO3z/b7Cn9gYA4zMHbxlUMjNH9 VyJCciULnE0dtabRlXJc2LvYFvTDJSGo+KKTwp53k3v9+fDk9O9RnobfAalzTh9rs31I 6vrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:to; bh=w4jvTBGuLhsrTtHI4IRH97garAEKj8lM2IDuMBdVDQQ=; b=uMG67t19zULbTc2sZf3gJDaMA7fiNLpST5R6JTBcqiZ6+CWqfIkwtwYYCe3wxzz0yM eaU1OHcdn9R5rHlPqCR6G94CeKSJ8EHaqH5G2L00MJPaKf153a+zcg2INZj1909Y0efM 6uDN6e9BkUtBGotPoTwFz67fq+Fqz1acWYIHC4TIgBvh7es0BmTDIrRZL01gAhUQuUkm TVCYDq9H915jZB+DmuEpGGVKbHOu7Nyhgg6vlajjH9jed1Osw08iqi4neAl8+GKzq/mx PtU9L0LN7WuKGmgLpYjiYtragum7/RMCyTK9PFOOJE3YkLp+ZGGTNBlj8N2AZ1w5KxLx hnBQ== X-Gm-Message-State: AOAM530t4YGsrOPaAqFJz5zm3mZSR2/FI+Mm3DuBO10YwzsQ2allxKA8 GKgMo9kK5/SKUzUY+GhdoB9QCefKUbA= X-Google-Smtp-Source: ABdhPJyqzNUv4hHMslpVCwJLKF8gCFl5OK48elBp/15FchXNzUJ0yDqQd6iQXelReGeQBNmuj7NMQQ== X-Received: by 2002:a37:6307:: with SMTP id x7mr16004620qkb.195.1605557535838; Mon, 16 Nov 2020 12:12:15 -0800 (PST) Received: from ?IPv6:2601:14b:4303:20ae:4da0:1c74:d63e:b06c? ([2601:14b:4303:20ae:4da0:1c74:d63e:b06c]) by smtp.gmail.com with ESMTPSA id i4sm1596395qti.78.2020.11.16.12.12.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 12:12:15 -0800 (PST) From: "Edward J. Sabol" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Date: Mon, 16 Nov 2020 15:12:13 -0500 Subject: pg_stat_activity's client_addr column contains "::1" but actually comes from elsewhere? Message-Id: <371E399B-8751-4A50-890D-02F899581EB6@gmail.com> To: pgsql-admin@postgresql.org X-Mailer: Apple Mail (2.3445.9.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello! I'm trying to track down where some connections are coming from. = "select pid,client_addr,client_hostname from pg_stat_activity" shows = multiple entries with values with client_addr =3D "::1". = "client_hostname" is blank for all entries, by the way, and unhelpful in = this scenario. Also, "state" is "idle" for these entries I'm interested = in, in case that matters. ::1 would imply the IPv6 loopback address, so that means the connection = is coming from a process on the server, right? But I'm positive there is = no process on this server that is connecting to PostgreSQL (other than = my psql session). So where are they actually coming from and why is PostgreSQL seemingly = misreporting them as coming from ::1? Thanks for any help, Ed