Re: Creating a user for pg_start_backup

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Creating a user for pg_start_backup
Дата
Msg-id CAB7nPqQcqNU-vqQdoWfWzOSHXrWQ5TC9Rg7R9BFX12r2XnxTiQ@mail.gmail.com
обсуждение исходный текст
Ответ на Creating a user for pg_start_backup  (Andrew Beverley <andy@andybev.com>)
Ответы Re: Creating a user for pg_start_backup  (Andrew Beverley <andy@andybev.com>)
Re: Creating a user for pg_start_backup  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-general
On Tue, Jul 21, 2015 at 4:47 PM, Andrew Beverley <andy@andybev.com> wrote:
> Dear all,
>
> I'm setting up hot backups on my database server. As such, I'd like to set up a
> Postgres user that has access to only pg_start_backup and pg_stop_backup.
>
> I'm unable to work out how to do this with the various GRANT options. Can someone
> point me in the right direction please? Or is there a better way to achieve this,
> rather than having a dedicated user?

Access to pg_start_backup and pg_stop_backup can be done with either a
replication user or a superuser. You can define user with such rights
with CREATE ROLE with the keyword REPLICATION:
http://www.postgresql.org/docs/devel/static/sql-createrole.html
--
Michael


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

Предыдущее
От: Andrew Beverley
Дата:
Сообщение: Creating a user for pg_start_backup
Следующее
От: Aviel Buskila
Дата:
Сообщение: Setting up HA postgresql