Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tcpzM-0033uQ-Kb for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 18:07:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tcpzL-002cYO-Mo for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 18:07:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tcpzK-002cYG-Dt for pgsql-general@lists.postgresql.org; Tue, 28 Jan 2025 18:07:03 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tcpzH-001zFp-15 for pgsql-general@lists.postgresql.org; Tue, 28 Jan 2025 18:07:00 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 67A81114011B; Tue, 28 Jan 2025 13:06:58 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 28 Jan 2025 13:06:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1738087618; x=1738174018; bh=nf7HtOv+crbW9Yvr25VZbSFIwH84pveK9HIvOFs7roc=; b= hgwRZrTpWqSaxCKHl6+/OHY5w5cDrUs86kC0s1D86SszXXZqKUUO3FRl/A/GARTP X4MK09eCltWPTXpGY+nK0CwYUmUEw6U8QeJdKhUubPgiOHlPNcwYqf7d+NIW1C4z w/h0Idd0SCxm3AFj0oBhXSuQHr0qlDi3WeyouDGLxj08PhI+DtWnZhgzZ8aD8Im+ U8lJ4PNNRY+jTjBu/eo0tFRwttV9YuOXHab0VVb5V2LSmbgWWj7coX4yGlVb33rZ D9ECnuC6LhBe6OPnbH5/c9UySjCv3jEcpkcV+fjAhSQQwztxgnCMS8EfEX1aOIhZ Km0yEwnI/y9iE8hIPXPq8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1738087618; x= 1738174018; bh=nf7HtOv+crbW9Yvr25VZbSFIwH84pveK9HIvOFs7roc=; b=A NWn/nEtwazpnvcTb82Xq7dMMYoUM5gTEVU2sT1NQ2zV0q/hN9rkY/cZmn32TUKD+ qXCXAvhTEJfVRpqj25HTdwur36kfBo96nl3R6E02T/qbI2FZrbo+Qk/NFfFliwJ+ BwX+ALWHPXgRsGYeDzoSGUtHD0XQbIdKYEenaxLVqHn4qF4PhPRCiEALGPsKZW5H fV24d0jh04s0a+Y3anNX+1vznoOx58yj/G3zEjWb9Y6O3LYOqn6uigaNccteF0JE XVlzygQ/BFHBCy5/ro8ojPJWpVW0YwmgHrckHYZXzX8CcUJy7WK3BUXjRFPAwgQU YlZ8SthKgQXkjcR8tAyUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhveeihfevlefffedthedu keevfefhfedtgeeifeevteffgfefhedtffetudettdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehshhgrhhgvvgguhhgrqhhuvgesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Jan 2025 13:06:56 -0500 (EST) Message-ID: Date: Tue, 28 Jan 2025 10:06:55 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Content of pg_publication using a local connection versus network connection? To: Shaheed Haque Cc: pgsql-general list References: <19043fe9-076b-4d94-a81c-f4292551b8be@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/28/25 10:02 AM, Shaheed Haque wrote: > Hi, > > Based on the nudge from Adrian, I think I am now trying to connect to > the correct/same database through both the original > login-to-EC2-host-then-use-psql-to-RDS and then > setup-SSHTunnel-then-connect-via-psycopg-over-tunnel. > > The connect-via-psycopg-over-tunnel bit currently fails. Obviously, that > is almost certainly a bug in my code, but I am aware that the Postgres' > HBA setup is capable of distinguishing local logins from remote logins, > so I wanted to check if Postgres' login security can similarly > distinguish between a (remote) psql login and a (remote) psycopg login? They both use libpq so I doubt it. > > Thanks, Shaheed > > > > On -- Adrian Klaver adrian.klaver@aklaver.com