Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EDFD31337B98 for ; Wed, 24 Nov 2010 10:54:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 05769-03 for ; Wed, 24 Nov 2010 14:54:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id BA1211337B39 for ; Wed, 24 Nov 2010 10:54:28 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 24 Nov 2010 08:54:28 -0600 Message-Id: <4CECD2BC0200002500037DE9@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 24 Nov 2010 08:54:20 -0600 From: "Kevin Grittner" To: "Elliot Chance" , "Vladimir Rusinov" Cc: ,"Tom Lane" Subject: Re: pg_dump and XID limit References: <6420.1290578869@sss.pgh.pa.us> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/215 X-Sequence-Number: 36181 Vladimir Rusinov wrote: > I think it would be advisable not to use pg_dump on such load. Agreed. > Use fs- or storage-level snapshots instead. Or PITR backup techniques. Or hot/warm standby. Or streaming replication. Or one of the many good trigger-based replication products. Just about any of the alternatives would be better than pg_dump in the described scenario. If you leave any transaction open for hours during a heavy OLTP transaction load you're probably going to get unpleasant bloat in your database. -Kevin