Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bK6RK-0008Vb-55 for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 16:09:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bK6RJ-0000v5-J0 for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 16:09:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bK6RJ-0000uy-2c for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 16:09:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bK6RC-0002Ki-Bf for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 16:09:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u64G9WHw021759; Mon, 4 Jul 2016 12:09:32 -0400 From: Tom Lane To: nqtien310@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14226: pg_upgrade for 8.4 to 9.4 failed In-reply-to: <20160704134338.1397.58009@wrigleys.postgresql.org> References: <20160704134338.1397.58009@wrigleys.postgresql.org> Comments: In-reply-to nqtien310@gmail.com message dated "Mon, 04 Jul 2016 13:43:38 -0000" Date: Mon, 04 Jul 2016 12:09:32 -0400 Message-ID: <21758.1467648572@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org nqtien310@gmail.com writes: > But then the process was failed when I run the actual upgrade > "/usr/pgsql-9.4/bin/pg_upgrade -d /var/lib/pgsql/data -D > /var/lib/pgsql/9.4.test/data -b /usr/bin/ -B /usr/pgsql-9.4/bin/ > I consulted the log and saw these errors: > ------------------ > pg_restore: creating CONSTRAINT yodlee_user_accounts_pkey > pg_restore: creating INDEX concurrently > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error from TOC entry 2638; 1259 19738 INDEX > concurrently blueleaf > pg_restore: [archiver (db)] could not execute query: ERROR: CREATE INDEX > CONCURRENTLY cannot be executed from a function or multi-command string > Command was: Drop or rename your index named "concurrently". (PG 9.0 and up seem to quote that index name safely, but 8.4 doesn't, and it's long out of support.) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs