Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XMme4-0001vw-VH for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Aug 2014 23:28:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XMme4-0002BW-Ai for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Aug 2014 23:28:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XMme3-0002BQ-Jr for pgsql-bugs@postgresql.org; Wed, 27 Aug 2014 23:28:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XMme0-0003CQ-EE for pgsql-bugs@postgresql.org; Wed, 27 Aug 2014 23:28:49 +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 s7RNSjjt008350; Wed, 27 Aug 2014 19:28:45 -0400 From: Tom Lane To: Eric Malm cc: pgsql-bugs@postgresql.org, cf-runtime-eng , Luan Santos Subject: Re: Error with citext extension when upgrading from 9.0.3 to 9.3.5: 'cannot cast type oid[] to oidvector' In-reply-to: References: Comments: In-reply-to Eric Malm message dated "Tue, 26 Aug 2014 16:53:32 -0700" Date: Wed, 27 Aug 2014 19:28:45 -0400 Message-ID: <8349.1409182125@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Eric Malm writes: > We've encountered some errors when upgrading a database using the citext > extension from 9.0.3 to 9.3.5. Specifically, we run pg_upgrade, then > attempt to run 'CREATE EXTENSION citext FROM UNPACKAGED' to resolve > collation errors on our citext columns. This produces the error message > 'ERROR: cannot cast type oid[] to oidvector' when it runs the following > command from contrib/citext/citext--unpackaged--1.0.sql: Oh, that's annoying. > We think this may be related to commit 7b63528, Yeah, no doubt. I don't think there's anything wrong with that commit, but we'll need to make the citext upgrade script even more of a kluge in order to dodge the new restriction. I'm thinking about regexp_replace on the text form of the oidvector :-(. Anybody have a better idea? 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