Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 51397B5DC66 for ; Mon, 24 Oct 2011 19:25:30 -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 03446-06 for ; Mon, 24 Oct 2011 22:25:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by mail.postgresql.org (Postfix) with ESMTP id E24F3B5DC61 for ; Mon, 24 Oct 2011 19:25:23 -0300 (ADT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=kradhak@cisco.com; l=2621; q=dns/txt; s=iport; t=1319495125; x=1320704725; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to; bh=evmSIDNGA4ovufW2SX2QwcgL8AXFJwuTfUA0bo4NDBM=; b=fOOpC9j18fnc87rIaoBt9oOKIFlse8XrNiRGQClTZ2aiYSpR7e+7s5rd 3qHo5F53lzyfoKLbh3TgVSHPnfFbJQkef7NOwEkDOZB7NNLVaLQVrH20Q 7xL2bD7DvX6pa6v9GJ/4yIOmte9EVVAR77ixDXb7kx6/Zua7culS68E1v Q=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAJHlpU6rRDoH/2dsb2JhbABDqROBBYFuAQEBAQMSAWUBEAsEARMJFg8JAwIBAgFFBg0BBQIBAR6dWQGeN4hABIgGjAOFNYM0iRE X-IronPort-AV: E=Sophos;i="4.69,400,1315180800"; d="scan'208,217";a="9247065" Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-1.cisco.com with ESMTP; 24 Oct 2011 22:25:24 +0000 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by mtv-core-2.cisco.com (8.14.3/8.14.3) with ESMTP id p9OMPOr2001626; Mon, 24 Oct 2011 22:25:24 GMT Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Oct 2011 15:25:24 -0700 Received: from dhcp-10-129-4-186.cisco.com ([10.129.4.186]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Oct 2011 15:25:22 -0700 Message-ID: <4EA5E5D1.8020804@cisco.com> Date: Mon, 24 Oct 2011 16:25:21 -0600 From: Krishnamurthy Radhakrishnan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-admin@postgresql.org Subject: Re: Dumping data using pg_dump after chrooting to a different partition References: <4EA5E253.6020600@cisco.com> <4EA59DB50200002500042527@gw.wicourts.gov> In-Reply-To: <4EA59DB50200002500042527@gw.wicourts.gov> Content-Type: multipart/alternative; boundary="------------010200020206070505030401" X-OriginalArrivalTime: 24 Oct 2011 22:25:22.0691 (UTC) FILETIME=[D1F3E530:01CC929B] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.403 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/107 X-Sequence-Number: 38559 This is a multi-part message in MIME format. --------------010200020206070505030401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Kevin, Can you please elaborate how to do the following? connecting through a TCP connection and piping directly from pg_dump to psql Since we could have DB schema changes between the versions, we may not be able to copy the data directory. Does pg_upgrade support changes to the schema? Thanks. Radha On 10/24/11 4:17 PM, Kevin Grittner wrote: > 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 --------------010200020206070505030401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Kevin,

Can you please elaborate how to do the following?

connecting through a TCP connection and piping directly
from pg_dump to psql

Since we could have DB schema changes between the versions, we may not be able to copy the data directory.

Does pg_upgrade support changes to the schema?

Thanks.

Radha

On 10/24/11 4:17 PM, Kevin Grittner wrote:
Krishnamurthy Radhakrishnan <kradhak@cisco.com> 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

--------------010200020206070505030401--