Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJqcw-0001nj-94 for pgsql-admin@arkaria.postgresql.org; Sun, 24 Mar 2013 19:30:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UJqcv-0007B3-IU for pgsql-admin@arkaria.postgresql.org; Sun, 24 Mar 2013 19:30:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJqct-0007An-IJ for pgsql-admin@postgresql.org; Sun, 24 Mar 2013 19:30:43 +0000 Received: from mail-ee0-f48.google.com ([74.125.83.48]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJqcp-0000Fx-J2 for pgsql-admin@postgresql.org; Sun, 24 Mar 2013 19:30:42 +0000 Received: by mail-ee0-f48.google.com with SMTP id b15so23874eek.35 for ; Sun, 24 Mar 2013 12:30:38 -0700 (PDT) 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 :references:in-reply-to:content-type:content-transfer-encoding; bh=aLY0o2h+Rumzjcf4G9XrQ1R08/zjqfvnN0DBr3U8Keg=; b=rkPkoTOfYE4wiJKwPP6+jfNI7d4oTOyvOZnIB/odPaS+XadgD1UptfSfrHBUvi78Sn uhqwneszH8AtaURerOz6OznWzk3C04x+vIW6q8UINnyh79jGPz3aRTuhahYT+Y7W7kTu +FwzYXQYfMVKvGT7d/fl9lvNLFs3XhFI72mKK5BczmPHouhDjTpaSK5fXzB+PFSe1nRM RDhF8yCotNH6ZPejqHkXddUCNeiO/sbhfYQO/qRGiSztVhdeTeFp3+E+ynqRcip5sKgQ zAVau8ebqxTf4LTNbK074Z8568vOlqx0jzxXwdPeJQVXbc1cuRuTEImULjZzLMU1HvrG 0u3g== X-Received: by 10.14.5.137 with SMTP id 9mr14048588eel.30.1364153438721; Sun, 24 Mar 2013 12:30:38 -0700 (PDT) Received: from [192.168.0.13] (89-73-238-104.dynamic.chello.pl. [89.73.238.104]) by mx.google.com with ESMTPS id m46sm14906832eeo.16.2013.03.24.12.30.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 24 Mar 2013 12:30:38 -0700 (PDT) Message-ID: <514F545C.7020302@gmail.com> Date: Sun, 24 Mar 2013 20:30:36 +0100 From: Andrzej Zawadzki User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130118 Icedove/17.0.2 MIME-Version: 1.0 To: Daniel Krysiak , pgsql-admin@postgresql.org Subject: Re: Problem with data migration from 9.1 to 9.2 References: <51349935.8040300@gmail.com> In-Reply-To: <51349935.8040300@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 On 04.03.2013 13:53, Daniel Krysiak wrote: > 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" > I had to init new db cluster like that: initdb -D /var/lib/pgsql/data_new -E UTF8 --lc-collate=C --lc-ctype=C --lc-monetary=C --lc-numeric=C -U postgres Try. -- Andrzej Zawadzki -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin