Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCUtW-0002pd-Mf for pgsql-admin@arkaria.postgresql.org; Mon, 04 Mar 2013 12:53:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCUtW-0003rw-6u for pgsql-admin@arkaria.postgresql.org; Mon, 04 Mar 2013 12:53:30 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCUtU-0003qu-PK for pgsql-admin@postgresql.org; Mon, 04 Mar 2013 12:53:28 +0000 Received: from mail-ee0-f50.google.com ([74.125.83.50]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCUtR-00068e-Hj for pgsql-admin@postgresql.org; Mon, 04 Mar 2013 12:53:28 +0000 Received: by mail-ee0-f50.google.com with SMTP id e51so3972534eek.9 for ; Mon, 04 Mar 2013 04:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=szGFOzbeQbouFguxKYciFYYmk/V1kPzHvtD10nnHW74=; b=ubj/SIaofViMjKjJ/+dqPp172PHptEe9iF6Qa3IsNIeIkFXrAhgG6IotHDNqUE9PdW BtsE2MrDcyXujbDyASXgPeBKRwnIe4R+Qy8CCuLyketSfUrhVcTqsXfOEVG9nU4oRStK K/rGsyiNdr7umrsintZU9xn9BQggXvUdEveprNxMND9VeAH2v7YmdUDSVLv+j077XiG7 8hXh0NDpC8TO7+WuJMfUUMFNmWoizVD4rsLGxKPDEvm6NxkzCX6d2jFCmbDuisQFQEhR N8BT3pGa/9ONiCwqwsds7pMd/4RdvF+eAOqbZr60VX/CRuEDXRfxH6DRtG+pk/VoaTx8 qRgw== X-Received: by 10.14.175.129 with SMTP id z1mr59251151eel.7.1362401603964; Mon, 04 Mar 2013 04:53:23 -0800 (PST) Received: from [149.156.3.169] (mals.cyf-kr.edu.pl. [149.156.3.169]) by mx.google.com with ESMTPS id q5sm31914006eep.11.2013.03.04.04.53.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Mar 2013 04:53:19 -0800 (PST) Message-ID: <51349935.8040300@gmail.com> Date: Mon, 04 Mar 2013 13:53:09 +0100 From: Daniel Krysiak User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Problem with data migration from 9.1 to 9.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi, I'm using Arch Linux i686, and postgresql-old-upgrade package which provides /opt/pgsql-9.1/ Here is exactly what I did (this procedure has always worked for me) su - postgres cd /var/lib/postgres mv data data-9.1 mkdir data initdb --locale en_US.UTF-8 -D /var/lib/postgres/data pg_upgrade -b /opt/pgsql-9.1/bin/ -B /usr/bin/ -d /var/lib/postgres/data-9.1 -D /var/lib/postgres/data' Every step is marked "ok". This is my first migration from 9.1 to 9.2. The only difference from what I usually do, is that this time I needed to set --locale en_US.UTF-8, because of pg_upgrade error: lc_collate cluster values do not match: old "en_US.UTF-8", new "C" Now I can connect, but database looks empty, like Postgre couldn't see my schemas and users. pg_upgrade did "something" because: du -s data* 34876 data 34068 data-9.1 Moving back and run 9.1 to use pg_dumpall is quite impossible, or at least vary difficult with Arch Linux, so I would really appreciate some other suggestions. -- Daniel Krysiak -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin