From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pawan Sharma <pawanpg0963@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Restrict connection from pgadmin.
Date: Mon, 3 Feb 2020 09:03:11 -0800
Message-ID: <993e25c3-0389-3f32-2b0c-a3d250e09a10@aklaver.com> (raw)
In-Reply-To: <CAKqG8NUas0UGOj6KJSQQqQrx6tAxnNu5SKDFyKgBQUsmDAi+5Q@mail.gmail.com>
References: <CAKqG8NUas0UGOj6KJSQQqQrx6tAxnNu5SKDFyKgBQUsmDAi+5Q@mail.gmail.com>
On 2/2/20 10:47 PM, Pawan Sharma wrote:
> Hi All,
>
> Is there any way to restrict the connection only from pgadmin??? The
> same user can connect through application but can't from pgadmin.. Or
> any logon triggers..???
>
Not that I know of. pgAdmin is just another client so you just have the
methods available here:
https://www.postgresql.org/docs/12/auth-pg-hba-conf.html
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, pawanpg0963@gmail.com
Subject: Re: Restrict connection from pgadmin.
In-Reply-To: <993e25c3-0389-3f32-2b0c-a3d250e09a10@aklaver.com>
References: <CAKqG8NUas0UGOj6KJSQQqQrx6tAxnNu5SKDFyKgBQUsmDAi+5Q@mail.gmail.com> <993e25c3-0389-3f32-2b0c-a3d250e09a10@aklaver.com>
* 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