Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B8F33B5DBD9 for ; Wed, 17 Aug 2011 22:05:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23378-05-2 for ; Thu, 18 Aug 2011 01:05:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id F09B0B5DBE4 for ; Wed, 17 Aug 2011 22:05:31 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7I15VMJ025313 for ; Thu, 18 Aug 2011 01:05:31 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7I15VEk025312; Thu, 18 Aug 2011 01:05:31 GMT (envelope-from www) Date: Thu, 18 Aug 2011 01:05:31 GMT Message-Id: <201108180105.p7I15VEk025312@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6167: pg_dump fails on table lock From: "Jesper Engman" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/108 X-Sequence-Number: 30920 The following bug has been logged online: Bug reference: 6167 Logged by: Jesper Engman Email address: jesper@engman.net PostgreSQL version: 8.3.10 Operating system: Linux Description: pg_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=xxxxx && export PGPASSWORD && export PGOPTIONS="-c statement_timeout=0 -c maintenance_work_mem=2147483647" && /usr/bin/pg_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.