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 1nrSJt-0003lm-5C for pgsql-general@arkaria.postgresql.org; Wed, 18 May 2022 22:39:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrSIs-0004sj-7v for pgsql-general@arkaria.postgresql.org; Wed, 18 May 2022 22:38:02 +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 1nrSIr-0004sa-45 for pgsql-general@lists.postgresql.org; Wed, 18 May 2022 22:38:01 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrSIo-0001OL-J6 for pgsql-general@lists.postgresql.org; Wed, 18 May 2022 22:38:00 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id DE4DD3200918; Wed, 18 May 2022 18:37:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 18 May 2022 18:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1652913476; x= 1652999876; bh=skXuleVVj7jP/fnfBzuZrrj2O6U1fCp1DdnRHkIp+9Y=; b=b av8j8yENSiU9cGqGm127Q483x7Xb25d11gWQOodJNI2EjN94VCuALqQTn2fW4N/5 JN3Y7N8ZhpqhFx7wl12Cs5hR7Bd8lqSEsAoYn0SXIW896C1f7VKq7rShjbU7B0Zu m76+FMlgsgIGy0XyOwyeDbidyxFxTFD3zrSv4G/niTHNqzBd4WyuZ9JjDq/E17AH 3KU9hM5G0L37BGr+Pb/mS940nCpXKYYb/NSdkSdIGAo3ALUek1g2DqTDOYp5NZ6F I+UYu4ln48S48sDfIOnfJbv4BNRJPluMYXCU9SjwYtQsr92lJp4pyySCn7bc4jLL lDq2eCjsASw5MvALC0Syg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652913476; x= 1652999876; bh=skXuleVVj7jP/fnfBzuZrrj2O6U1fCp1DdnRHkIp+9Y=; b=e 0pWCqF/7x47xJ4IpD7114oz15SLssgoRlOtq1U4CPx/CXvFtqFbRQ5Y3BeV+gk/R 5iigPPR3VsANKN3GP+lHfx0w4+9RYXGHfQ2JrWuf5Jz7NaEaXb3KX/THqa6gQLyH DjXDTWD12CcvFqNbI5tCXWIPmpsjvCvXWIKgfPrLuH1NKmWA4NBPXKnVB32s+8fh ogDE2F6nrNSkP+K4fn27u2R/QX44TyU10qgC2KI+zWxctlJpi7qsn3EkLEhcua4a snTR4nGmNxCh4RNZU4FFnT9CHUO+1qhjLMf9N76OyEoIpJR10f7aqd1J9besXE0j grjbUqOzjwh1EAalJO1kA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedtgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefhgeevkeefleffvdfgvdefffdtueejheehueeifffh feeihfdvhffgtefgvdeugfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 May 2022 18:37:55 -0400 (EDT) Message-ID: Date: Wed, 18 May 2022 15:37:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Who am I? Where am I connected? Content-Language: en-US To: Dominique Devienne , "David G. Johnston" Cc: "pgsql-generallists.postgresql.org" References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/18/22 14:59, Dominique Devienne wrote: > > > AFAIK, it’s not psql that does this though, it’s libpq the official > client api. > And the fact libpq has no way to surface that info seems like an > important oversight. > Not all clients use libpq e.g. the Postgres JDBC driver. It just uses the Postgres Frontend/Backend protocol: https://www.postgresql.org/docs/current/protocol.html -- Adrian Klaver adrian.klaver@aklaver.com