Re: BUG #6167: pg_dump fails on table lock
От | Simon Riggs |
---|---|
Тема | Re: BUG #6167: pg_dump fails on table lock |
Дата | |
Msg-id | CA+U5nMK_7n7eRpzFsC6FMvaDCZAPa8BmGVfhpTo28sxuBjYT2g@mail.gmail.com обсуждение исходный текст |
Ответ на | BUG #6167: pg_dump fails on table lock ("Jesper Engman" <jesper@engman.net>) |
Ответы |
Re: BUG #6167: pg_dump fails on table lock
|
Список | pgsql-bugs |
On Thu, Aug 18, 2011 at 2:05 AM, Jesper Engman <jesper@engman.net> wrote: > > The following bug has been logged online: > > Bug reference: =A0 =A0 =A06167 > Logged by: =A0 =A0 =A0 =A0 =A0Jesper Engman > Email address: =A0 =A0 =A0jesper@engman.net > PostgreSQL version: 8.3.10 > Operating system: =A0 Linux > Description: =A0 =A0 =A0 =A0pg_dump fails on table lock > Details: > > I have tables that exists for short time periods, sometimes for as short = as > 5 min. pg_dump is starting to fail due to a problem to lock these tables: > > pg_dump: SQL command failed > pg_dump: Error message from server: ERROR: relation > "vehicle_change_partitions.vehicle_change_export_p4368494" does not exist > pg_dump: The command was: LOCK TABLE > vehicle_change_partitions.vehicle_change_export_p4368494 IN ACCESS SHARE > MODE > Backup failed: PGPASSWORD=3Dxxxxx && export PGPASSWORD && export PGOPTION= S=3D"-c > statement_timeout=3D0 -c maintenance_work_mem=3D2147483647" && /usr/bin/p= g_dump > -h xxx.xxx.xxx.xxx -U postgres --ignore-version -Fc -Z 6 xxxxxxxx > > /vol/nfs_backup/postgres_dumps/2011_07_13/xxxxxxxx_2011_07_13 > Account: xxxxxxxx Backup failed > > How is this possible - pg_dump is a serializable transaction? It doesn't > seem to be tripped up by some other backend function since this actually > fails on the lock. Well, its not a bug. You've asked to dump a table and then dropped the table concurrently with the attempt to dump the table. Exclude the tables you don't wish to have dumped using command line options. I don't think we will put in an option to silently exclude missing tables, not least because it would be technically difficult. --=20 =A0Simon Riggs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 http:/= /www.2ndQuadrant.com/ =A0PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-bugs по дате отправления: