Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TutDT-0001Hp-Qw for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 23:13:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TutDS-0001On-RD for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 23:13:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TutDS-0001Oh-0V for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 23:13:18 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TutDP-00050l-Oz for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 23:13:17 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TutDO-00084g-IN for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 23:13:15 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TutDO-0001Hb-2v for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 23:13:14 +0000 Date: Mon, 14 Jan 2013 23:13:14 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables To: pgsql-bugs@postgresql.org From: joe@tanga.com X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7809 Logged by: Joe Van Dyk Email address: joe@tanga.com PostgreSQL version: 9.2.2 Operating system: Ubuntu Description:=20=20=20=20=20=20=20=20 Running pg_dump on a streaming replication slave with a database that has unlogged_tables will fail unless you provide the "--no-unlogged-table-data" option with the following (scary) error: pg_dump: Dumping the contents of table "tracking_import_data" failed: PQgetResult() failed. pg_dump: Error message from server: ERROR: could not open file "base/16388/190326": No such file or directory pg_dump: The command was: COPY public.tracking_import_data (uuid, tracking_number) TO stdout; (this guy encountered the error as well: http://www.postgresql.org/message-id/DE2DE764-307D-4A23-A9A9-6608AC0977CB@t= icketevolution.com ) Could running pg_dump against a slave always use the "--no-unlogged-table-data" option? In my case, I had automatic scripts that run pg_dump (without the unlogged option) against the slave, and they failed right after I added an unlogged table for the first time. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs