pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Malm <emalm@pivotal.io>
To: pgsql-bugs@postgresql.org
Cc: cf-runtime-eng <cf-runtime-eng@pivotal.io>
Cc: Luan Santos <lsantos@pivotal.io>
Subject: Error with citext extension when upgrading from 9.0.3 to 9.3.5: 'cannot cast type oid[] to oidvector'
Date: Tue, 26 Aug 2014 16:53:32 -0700
Message-ID: <CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Dear PostgreSQL developers,

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:

UPDATE pg_catalog.pg_index SET indcollation[0] = 100
WHERE indclass[0] IN (
  WITH RECURSIVE typeoids(typoid) AS
    ( SELECT 'citext'::pg_catalog.regtype UNION
      SELECT oid FROM pg_catalog.pg_type, typeoids
        WHERE typelem = typoid OR typbasetype = typoid )
  SELECT oid FROM pg_catalog.pg_opclass, typeoids
  WHERE opcintype = typeoids.typoid
);

We think this may be related to commit 7b63528, which fixes array slicing
of int2vector and oidvector values. The full message on the commit states
that this forbids array-element updates on oidvector columns. Additionally,
we have successfully upgraded to 9.3.1, which is the latest version of 9.3
that does not include this commit.

Please let us know if there's additional information or assistance we can
provide to help resolve this.

Thanks very much,
Eric Malm and Luan Santos, for the Pivotal CF Runtime team

view thread (4+ messages)  latest in thread

Message-ID: <CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com>
Permalink:  ../CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com/
Also on:    postgresql.org/message-id/CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: emalm@pivotal.io, cf-runtime-eng@pivotal.io, lsantos@pivotal.io
  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: <CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com>
  References: <CACVur1aYPSXZnSXd3LcQTDaoki3P5u2X4AWd1+iiGVObBd9ekA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox