Re: Allow user to connect to replicas only

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Wiwwo Staff <wiwwo(at)wiwwo(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Allow user to connect to replicas only
Date: 2022-08-04 13:56:53
Message-ID: 20220804135653.GA6811@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 04, 2022 at 03:42:00PM +0200, Wiwwo Staff wrote:
> Is there any way to create a user allowed to connect to a/any read replica
> only, as in "not allowed to connect to primary"?

Sure. Modify pg_hba.conf on primary to disallow connections as this
user.

Best regards,

depesz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Danny Shemesh 2022-08-04 14:03:22 Re: Index only scans for expressional indices when querying for the expression
Previous Message Wiwwo Staff 2022-08-04 13:42:00 Allow user to connect to replicas only