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 1pprdl-0006iV-LY for pgsql-admin@arkaria.postgresql.org; Fri, 21 Apr 2023 14:21:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pprdk-0000RG-IC for pgsql-admin@arkaria.postgresql.org; Fri, 21 Apr 2023 14:21:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pprdk-0000R7-7N for pgsql-admin@lists.postgresql.org; Fri, 21 Apr 2023 14:21:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pprdh-004Fjd-Sf for pgsql-admin@lists.postgresql.org; Fri, 21 Apr 2023 14:21:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 33LELRbV3338294; Fri, 21 Apr 2023 10:21:27 -0400 From: Tom Lane To: Daulat cc: pgsql-admin Subject: Re: dblink authentication issue In-reply-to: References: Comments: In-reply-to Daulat message dated "Fri, 21 Apr 2023 17:54:11 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3338292.1682086887.1@sss.pgh.pa.us> Date: Fri, 21 Apr 2023 10:21:27 -0400 Message-ID: <3338293.1682086887@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daulat writes: > I have some problem with using dblink_connect_u() while making a connection > using a .pgpass file. > select * from gis.dblink_connect_u('conn'||'X123','dbname='||'pgdb'); > ERROR: could not establish connection > DETAIL: fe_sendauth: no password supplied This is intentional: to use a .pgpass file belonging to the server owner, you must be a database superuser. regards, tom lane