pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daulat <daulat.dba@gmail.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: dblink authentication issue
Date: Fri, 21 Apr 2023 10:21:27 -0400
Message-ID: <3338293.1682086887@sss.pgh.pa.us> (raw)
In-Reply-To: <CALfOM6+5-S_u_DC4uq74c1n-nfhK-6p_fmEhHTdHH+p6W2aH7g@mail.gmail.com>
References: <CALfOM6+5-S_u_DC4uq74c1n-nfhK-6p_fmEhHTdHH+p6W2aH7g@mail.gmail.com>

Daulat <daulat.dba@gmail.com> 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





view thread (3+ messages)  latest in thread

Message-ID: <3338293.1682086887@sss.pgh.pa.us>
Permalink:  ../3338293.1682086887@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3338293.1682086887@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daulat.dba@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: dblink authentication issue
  In-Reply-To: <3338293.1682086887@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