Running pg_dump from a slave server

Поиск
Список
Период
Сортировка
От Patrick B
Тема Running pg_dump from a slave server
Дата
Msg-id CAJNY3isk0+YfoQEm-LVMNFz7pCn8JVbBxnignYMug5gsAQefsw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Running pg_dump from a slave server  (Sameer Kumar <sameer.kumar@ashnik.com>)
Список pgsql-general
Hi guys,

I'm using PostgreSQL 9.2 and I got one master and one slave with streaming replication.

Currently, I got a backup script that runs daily from the master, it generates a dump file with 30GB of data.

I changed the script to start running from the slave instead the master, and I'm getting this errors now:

pg_dump: Dumping the contents of table "invoices" failed: PQgetResult() failed.
pg_dump: Error message from server: ERROR:  canceling statement due to conflict with recovery
DETAIL:  User was holding a relation lock for too long.


Isn't that possible? I can't run pg_dump from a slave?


Cheers

Patrick

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: what change in postgres 9.5 improvements for multi-CPU machines
Следующее
От: Sameer Kumar
Дата:
Сообщение: Re: Running pg_dump from a slave server