Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4CA7EB5DC5D for ; Mon, 24 Oct 2011 19:17:54 -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 06593-01 for ; Mon, 24 Oct 2011 22:17:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 97B1AB5DC5B for ; Mon, 24 Oct 2011 19:17:47 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 24 Oct 2011 17:17:47 -0500 Message-Id: <4EA59DB50200002500042527@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 24 Oct 2011 17:17:41 -0500 From: "Kevin Grittner" To: "Krishnamurthy Radhakrishnan" , Subject: Re: Dumping data using pg_dump after chrooting to a different partition References: <4EA5E253.6020600@cisco.com> In-Reply-To: <4EA5E253.6020600@cisco.com> 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=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/106 X-Sequence-Number: 38558 Krishnamurthy Radhakrishnan wrote: > pg_dump works before chrooting to the secondary partition. Can > you please provide a way to dump the data after chrooting? How about connecting through a TCP connection and piping directly from pg_dump to psql? Of course, these days you have the option of just using pg_upgrade against the original or a deep copy of the data directory. -Kevin