[GENERAL] Allow only certain query on replication slave

Поиск
Список
Период
Сортировка
От basti
Тема [GENERAL] Allow only certain query on replication slave
Дата
Msg-id d00936e3-6607-6848-a9c7-6765a99882a2@unix-solution.de
обсуждение исходный текст
Ответы Re: [GENERAL] Allow only certain query on replication slave  (Michael Paquier <michael.paquier@gmail.com>)
Re: [GENERAL] Allow only certain query on replication slave  (Don Seiler <don@seiler.us>)
Список pgsql-general
Hello,

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 cluster.

Is there a way to allow only the above query and deny all other?

Best Regards,
basti


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Rhhh Lin
Дата:
Сообщение: Re: [GENERAL] Backup strategy using 'wal_keep_segments'
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] Allow only certain query on replication slave