Re: [HACKERS] logical replication read-only slave - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] logical replication read-only slave
Date
Msg-id 5f7dbc85-a798-7ce7-5ce3-7d8a1913cd86@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] logical replication read-only slave  ("Maeldron T." <maeldron@gmail.com>)
List pgsql-hackers
On 6/15/17 11:12, Maeldron T. wrote:
> However, it provides me a safety net that I could not execute writes on
> the slave by accident. Not only I couldn’t do it, I would also receive a
> notification from the software about the attempt as it would throw an
> exception.
> 
> Let’s say I would switch to logical replication of all tables
> Safety net is gone

You can change the permissions on your slave so that you cannot write to
the tables.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: "Maeldron T."
Date:
Subject: [HACKERS] logical replication read-only slave
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Making server name part of the startup message