Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 24EB5B5DD84 for ; Mon, 24 Oct 2011 19:11:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 64508-01-3 for ; Mon, 24 Oct 2011 22:11:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mtv-iport-4.cisco.com (mtv-iport-4.cisco.com [173.36.130.15]) by mail.postgresql.org (Postfix) with ESMTP id E31E7B5DDD8 for ; Mon, 24 Oct 2011 19:10:28 -0300 (ADT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=kradhak@cisco.com; l=3225; q=dns/txt; s=iport; t=1319494230; x=1320703830; h=message-id:date:from:mime-version:to:subject; bh=3hGM+Etl9jBWLFIenFClCRcfsqsH5XrRUJwiYISROaE=; b=lVW4eBixoYyzBfBZN69kshBGewNuJI0ynj2t9hFLSvi+F1I21EV4hX0p YmaU/7mS0DBvpGBGjnRWWDvrnUCSM3xRq6UnWfVuo7/oiaUNZWHQzrvGi 44HWa51GXuYptkS8OyCx2SRP1dBiMwFwRMpvIWp5Di66C/H6kHNlB1H3q 8=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8HANPhpU6rRDoH/2dsb2JhbABDmhWMO4JDgQWCBwFlIB0WGAMCAQIBWAgBAR6cMoEmAZ42iEAEiAaMA4U1gzSJEQ X-IronPort-AV: E=Sophos;i="4.69,400,1315180800"; d="scan'208,217";a="9934967" Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-4.cisco.com with ESMTP; 24 Oct 2011 22:10:29 +0000 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by mtv-core-2.cisco.com (8.14.3/8.14.3) with ESMTP id p9OMATBu025661 for ; Mon, 24 Oct 2011 22:10:29 GMT Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Oct 2011 15:10:29 -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:10:28 -0700 Message-ID: <4EA5E253.6020600@cisco.com> Date: Mon, 24 Oct 2011 16:10:27 -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: pgsql-admin@postgresql.org Subject: Dumping data using pg_dump after chrooting to a different partition Content-Type: multipart/alternative; boundary="------------040208000502040103070305" X-OriginalArrivalTime: 24 Oct 2011 22:10:28.0549 (UTC) FILETIME=[BD00A750:01CC9299] 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/105 X-Sequence-Number: 38557 This is a multi-part message in MIME format. --------------040208000502040103070305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I am new to PostgreSQL. We are using PostgreSQL 9.0.2 on our linux server. We have an instance of PostgreSQL 9.0 running using the primary partition on the server. We want to use the pg_dump and psql programs to migrate the data during our software upgrade process. For upgrade, we plan to do the following: * chroot to a secondary partition on the server. * install the software RPMs including PostgreSQL RPMs * start a secondary instance of PostgreSQL DB server using a different port and data directory. * run pg_dump to dump the data from the primary instance to a file. * run psql to import the data from the file into the secondary instance. However when I tried to perform the pg_dump as mentioned above, I get the following error: pg_dump: [archiver (db)] connection to database "TestDB" failed: could not connect to server: No such file or directory| Is the server running locally and accepting| connections on Unix domain socket "/tmp/.s.PGSQL.5432"?| pg_dump works before chrooting to the secondary partition. Can you please provide a way to dump the data after chrooting? Thanks for your help. Radha --------------040208000502040103070305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

I am new to PostgreSQL. We are using PostgreSQL 9.0.2 on our linux server. We have an instance of PostgreSQL 9.0 running using the primary partition on the server.

We want to use the pg_dump and psql programs to migrate the data during our software upgrade process. For upgrade, we plan to do the following:
  • chroot to a secondary partition on the server.
  • install the software RPMs including PostgreSQL RPMs
  • start a secondary instance of PostgreSQL DB server using a different port and data directory.
  • run pg_dump to dump the data from the primary instance to a file.
  • run psql to import the data from the file into the secondary instance.
However when I tried to perform the pg_dump as mentioned above, I get the following error:
pg_dump: [archiver (db)] connection to database "TestDB" failed: could not connect to server: No such file or directory|<LVL::Debug>
Is the server running locally and accepting|<LVL::Debug>
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?|<LVL::Debug>

pg_dump works before chrooting to the secondary partition. Can you please provide a way to dump the data after chrooting?

Thanks for your help.

Radha


--------------040208000502040103070305--