From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Baldwin <steve.baldwin@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Using a 'loopback' FDW
Date: Tue, 09 Mar 2021 22:42:23 -0500
Message-ID: <2060366.1615347743@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKE1AibRA0nhdyk-vF51HxXHp+7gC7AcY0On_-aN=XT2t++RNg@mail.gmail.com>
References: <CAKE1AibRA0nhdyk-vF51HxXHp+7gC7AcY0On_-aN=XT2t++RNg@mail.gmail.com>
Steve Baldwin <steve.baldwin@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, steve.baldwin@gmail.com
Subject: Re: Using a 'loopback' FDW
In-Reply-To: <2060366.1615347743@sss.pgh.pa.us>
References: <CAKE1AibRA0nhdyk-vF51HxXHp+7gC7AcY0On_-aN=XT2t++RNg@mail.gmail.com> <2060366.1615347743@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox