From: | Viral Shah <viralshah009(at)gmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | pg_dump fails when a table is in ACCESS SHARE MODE |
Date: | 2020-02-25 15:11:32 |
Message-ID: | CAEVFvu0aY4qgxVtMJvPTqty0pmL-jqsbsY9DkmA8REDbQtwKcw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello All,
I am facing some problems while taking logical backup of my database using
pg_dump. We have set up our infrastructure such that the logical backups
are taken on our DR. Our intention here is to avoid substantial load on our
primary server. We also pause and play wal files using pg_wal_replay_pause
and pg_wal_replay_resume before and after pg_dump. However, at the time of
pausing the wal replay, if there is a table under ACCESS SHARE MODE, the
pg_dump cannot complete the backup.
Can anyone suggest any better solution to take a logical backup using
pg_dump where the table lock doesn't result in failure of the logical
backup?
PS: we are using PostgreSQL 10.12
Thanks,
Viral Shah
Data Analyst, Nodal Exchange LLC
viralshah009(at)gmail(dot)com | (240) 645 7548
From | Date | Subject | |
---|---|---|---|
Next Message | Rene Romero Benavides | 2020-02-25 15:36:15 | Re: pg_dump fails when a table is in ACCESS SHARE MODE |
Previous Message | Mike Sofen | 2020-01-25 13:18:42 | RE: SQL schema and query optimisation for fast cross-table query execution |