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 1lJpk1-00022k-SH for pgsql-general@arkaria.postgresql.org; Wed, 10 Mar 2021 03:42: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 1lJpk0-0006dY-Hg for pgsql-general@arkaria.postgresql.org; Wed, 10 Mar 2021 03:42: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 1lJpk0-0006dQ-9v for pgsql-general@lists.postgresql.org; Wed, 10 Mar 2021 03:42:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJpju-0000ny-1T for pgsql-general@lists.postgresql.org; Wed, 10 Mar 2021 03:42: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 12A3gNI62060367; Tue, 9 Mar 2021 22:42:23 -0500 From: Tom Lane To: Steve Baldwin cc: "pgsql-generallists.postgresql.org" Subject: Re: Using a 'loopback' FDW In-reply-to: References: Comments: In-reply-to Steve Baldwin message dated "Wed, 10 Mar 2021 14:17:54 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2060365.1615347743.1@sss.pgh.pa.us> Date: Tue, 09 Mar 2021 22:42:23 -0500 Message-ID: <2060366.1615347743@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Steve Baldwin writes: > I'm guessing I'm doing something wrong here. I've used postgres_fdw before > to connect between servers, but in this instance I'm trying to use it > to connect back to itself. What are your pg_hba.conf settings for local connections? > ERROR: password is required > DETAIL: Non-superuser cannot connect if the server does not request a > password. > HINT: Target server's authentication method must be changed or > password_required=false set in the user mapping attributes. This suggests that you're using trust, peer, or something else in which the password isn't actually relevant. regards, tom lane