X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 43301D1B54D for ; Thu, 2 Oct 2003 19:49:43 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 67234-03 for ; Thu, 2 Oct 2003 16:48:58 -0300 (ADT) Received: from abe.micropat.com (abe.micropat.com [204.17.221.119]) by svr1.postgresql.org (Postfix) with ESMTP id 1BE44D1B531 for ; Thu, 2 Oct 2003 16:48:56 -0300 (ADT) Received: from micropat.com ([204.17.221.90]) by abe.micropat.com (Netscape Messaging Server 4.15) with ESMTP id HM5B1L00.E09 for ; Thu, 2 Oct 2003 15:48:57 -0400 Message-ID: <3F7C82DD.BB9083C9@micropat.com> Date: Thu, 02 Oct 2003 15:56:13 -0400 From: "Rob Long" X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: pg_restore fails - postgres 7.3.4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=RCVD_IN_OSIRUSOFT_COM, USER_AGENT_MOZILLA_XM X-Spam-Level: X-Archive-Number: 200310/26 X-Sequence-Number: 10587 Trying to dump and restore a production database with no success. pg_dump database using the following: pg_dump -v -b -C -Fc -U postgres -f servdb.tar.gz servdb pg_restore with with following: pg_restore -v -C -D template1 -Fc -U postgres servdb.tar.gz restore fails with: pg_restore: [archiver (db)] could not execute query: ERROR: data type integer has no default operator class for access method "gist" You must specify an operator class for the index or define a default operator class for the data type pg_restore: ***aborted because of error From the documentation the following query illustrates that I have four gist acc_methods available: select am.amname as acc_method, opc.opcname as ops_name from pg_am am, pg_opclass opc where opc.opcamid = am.oid order by acc_method, ops_name; acc_method | ops_name ----------------------------- gist | gist_box_ops gist | gist_int4_ops gist | gist_poly_ops gist | gist_timestamp_ops The create index statement that is failing the restore: CREATE INDEX idx_disc_loc ON order_items USING gist (disc, loc); Has anyone battled this one before? Is there a problem with dumping/restoring with blobs? Thanks, Rob