pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Allow user to connect to replicas only
2+ messages / 2 participants
[nested] [flat]

* Allow user to connect to replicas only
@ 2022-08-04 13:42  Wiwwo Staff <wiwwo@wiwwo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Wiwwo Staff @ 2022-08-04 13:42 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi!
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"?

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Allow user to connect to replicas only
@ 2022-08-04 13:56  hubert depesz lubaczewski <depesz@depesz.com>
  parent: Wiwwo Staff <wiwwo@wiwwo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: hubert depesz lubaczewski @ 2022-08-04 13:56 UTC (permalink / raw)
  To: Wiwwo Staff <wiwwo@wiwwo.com>; +Cc: pgsql-general@lists.postgresql.org

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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-08-04 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 13:42 Allow user to connect to replicas only Wiwwo Staff <wiwwo@wiwwo.com>
2022-08-04 13:56 ` hubert depesz lubaczewski <depesz@depesz.com>

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