Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGyp3-0004Pb-NU for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 04:38:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGyp2-0000eY-53 for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 04:38:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGyp1-0000eR-LO for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 04:38:51 +0000 Received: from mail-oln040092011083.outbound.protection.outlook.com ([40.92.11.83] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGyow-0008Eb-So for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 04:38:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+bF/E6vwLWY/iQVo/1DhGvLoQa/XPzCF0oQkyyVGBA0=; b=eXTyli5mttqV7plltBL6TWXx8GVg3KQ0GBMf+vtCJeS/JOlu5YAxYFacxKKr/3WF1u+pg6SGmJQSV7syCz573opPcSs86j9fCmnJiuL/2GN1sy7o9r6Di40fLysJMU7iOTDbvSrDIaza4WdKrkUWRLQCuy2LA3nVDnhOtdcwMYpFy6ttMDL8P9R4Bvx2NO/GM9+TJWdqNUlig7DC3FUVmilwteGju6ucyyQ/A2PhoxJTq/JS1RYNGeoxoJnwVFXZ64SEJQzCQ1R70HvfRwch3Gr+Mue4FWEQPxgWbPxcdIyvo33jDeWTlrRdbLdn2BLa4JQFsz5HdGIhO/gek42cBQ== Received: from BN3NAM04FT061.eop-NAM04.prod.protection.outlook.com (10.152.92.60) by BN3NAM04HT177.eop-NAM04.prod.protection.outlook.com (10.152.93.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16; Thu, 18 Apr 2019 04:38:43 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com (10.152.92.51) by BN3NAM04FT061.mail.protection.outlook.com (10.152.92.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Thu, 18 Apr 2019 04:38:43 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::cc89:48a0:6799:525f]) by BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::cc89:48a0:6799:525f%5]) with mapi id 15.20.1792.018; Thu, 18 Apr 2019 04:38:43 +0000 From: Julie Nishimura To: Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: ERROR: operator class "gin__int_ops" does not exist for access method "gin" Thread-Topic: ERROR: operator class "gin__int_ops" does not exist for access method "gin" Thread-Index: AQHU9Xz7GzR2frDJDUWIKCj9OVC9EKZBVh/L Date: Thu, 18 Apr 2019 04:38:43 +0000 Message-ID: References: ,<285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com> In-Reply-To: <285feb8c-779f-e885-44ee-c0c603e71e45@aklaver.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:178355FDCA76CDECBFB394F9CF8DB1885AE30FC2E0BD3545FC39D5074FBBD4E5;UpperCasedChecksum:71E5F68A1AD8711178FF28E417A3090E586C33F8ED7F106D64C84ABA9297696C;SizeAsReceived:6936;Count:43 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [9pNo5h1itgOyHO4yPXLLEQyX4hyVtEa9] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BN3NAM04HT177; x-ms-traffictypediagnostic: BN3NAM04HT177: x-ms-exchange-purlcount: 2 x-microsoft-antispam-message-info: 40t8hkwY1Ye7XG9c/T3Fj+6QoGtNtNr8QJBFPGfuzmka3xN0ydIPAn8E4fqbvexaBDcs4m+ZfhLqdg0FQW8HFbqmXIxVQMwLmJKCfoS/FxW/dJl1Mtwde6qm2ulMZAxs6aAfUnB+bnKaLLA8LDonJCnZmz3/T0YBEOob3/kHigcP+YBHr8uQAVCjgpZRcNv0 Content-Type: multipart/alternative; boundary="_000_BYAPR08MB5014E8D6FEAF6A709DD95443AC260BYAPR08MB5014namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 24a8fe17-79e4-4c39-5ccd-08d6c3b7bd0f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 04:38:43.6445 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT177 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BYAPR08MB5014E8D6FEAF6A709DD95443AC260BYAPR08MB5014namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you! All works now ________________________________ From: Adrian Klaver Sent: Wednesday, April 17, 2019 5:23 PM To: Julie Nishimura; pgsql-general@lists.postgresql.org Subject: Re: ERROR: operator class "gin__int_ops" does not exist for access= method "gin" 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 "g= in" > > 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 --_000_BYAPR08MB5014E8D6FEAF6A709DD95443AC260BYAPR08MB5014namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thank you! All works now


From: Adrian Klaver <a= drian.klaver@aklaver.com>
Sent: Wednesday, April 17, 2019 5:23 PM
To: Julie Nishimura; pgsql-general@lists.postgresql.org
Subject: Re: ERROR: operator class "gin__int_ops" does not= exist for access method "gin"
 
On 4/17/19 5:18 PM, Julie Nishimura wrote:
> We migrated some tables from 8.3 postgresql to 9.4, and when I compare= d
> 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 fo= r 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.p= ostgresql.org/docs/8.3/intarray.html

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

https://www.p= ostgresql.org/docs/9.4/intarray.html

>
> Thank you


--
Adrian Klaver
adrian.klaver@aklaver.com
--_000_BYAPR08MB5014E8D6FEAF6A709DD95443AC260BYAPR08MB5014namp_--