pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: ERROR: operator class "gin__int_ops" does not exist for access method "gin"
Date: Wed, 17 Apr 2019 17:23:40 -0700
Message-ID: <285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB50147B68654B4023712FC6B1AC260@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50147B68654B4023712FC6B1AC260@BYAPR08MB5014.namprd08.prod.outlook.com>

On 4/17/19 5:18 PM, Julie Nishimura wrote:
> We migrated some tables from 8.3 postgresql to 9.4, and when I compared 
> tables DDL between environments, I've noticed some indices are missing 
> (majority of them are using GIN
> 
> When I am taking 8.3 ddl for it:
>    CREATE INDEX serp_test2
>    ON serp_test
>    USING gin
>    (domainids gin__int_ops);
> 
> it gives me error:
> ERROR:  operator class "gin__int_ops" does not exist for access method "gin"
> 
> Is it possible to retrieve the ddl for operator class and recreate it on 
> 9.4? If not, is there any work-around?

Looks like it needs the  intarray extension:

https://www.postgresql.org/docs/8.3/intarray.html

"There is also a non-default GIN operator class gin__int_ops."

9.4:

https://www.postgresql.org/docs/9.4/intarray.html

> 
> Thank you


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)  latest in thread

Message-ID: <285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com>
Permalink:  ../285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com/
Also on:    postgresql.org/message-id/285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, juliezain@hotmail.com
  Subject: Re: ERROR: operator class "gin__int_ops" does not exist for access method "gin"
  In-Reply-To: <285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com>
  References: <BYAPR08MB50147B68654B4023712FC6B1AC260@BYAPR08MB5014.namprd08.prod.outlook.com> <285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.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