Re: [GENERAL] Allow only certain query on replication slave

2017-10-24 Thread Don Seiler
On Tue, Oct 24, 2017 at 8:12 AM, basti wrote: > > > Is there a way to allow only the above query and deny all other? > Probably easiest to just configure your HBA to restrict all connections/uses except the one that does your xlog query checks. Don. -- Don Seiler www.seiler.us

Re: [GENERAL] Allow only certain query on replication slave

2017-10-24 Thread Michael Paquier
On Tue, Oct 24, 2017 at 6:12 AM, basti wrote: > I have a Postgres slave (wal replication) and want no query on it, expect > > - SELECT pg_last_xlog_receive_location() > - SELECT pg_last_xlog_replay_location() > > When I set hot_standby = off in postgres.conf nobody can query the > replication clus