Received: from MAIL01.stbernard.com (mail01.stbernard.com [64.154.93.162]) by postgresql.org (Postfix) with ESMTP id AC3744758A1; Tue, 9 Jul 2002 17:01:00 -0400 (EDT) Received: by MAIL01.stbernard.com with Internet Mail Service (5.5.2653.19) id <3RPYVTY7>; Tue, 9 Jul 2002 14:00:58 -0700 Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.com> From: Jie Liang To: "'pjw@rhyme.com.au'" Cc: "'admin@postgresql.org'" , "'pgsql-sql@postgresql.org'" Subject: Re: pg_restore cannot restore index Date: Tue, 9 Jul 2002 14:00:48 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200207/124 X-Sequence-Number: 8503 Another possible bug: pg_restore -i "\"indexname\"" -d mydb mydumpfile msg: pg_restore: connecting to database for restore pg_restore: creating FUNCTION "plpgsql_call_handler" () pg_restore: [archiver (db)] could not execute query: ERROR: function plpgsql_call_handler already exists with same argument types pg_restore: *** aborted because of error I read the pg_restore.c source code, I found: #ifdef HAVE_GETOPT_LONG struct option cmdopts[] = { {"clean", 0, NULL, 'c'}, {"create", 0, NULL, 'C'}, {"data-only", 0, NULL, 'a'}, {"dbname", 1, NULL, 'd'}, {"file", 1, NULL, 'f'}, {"format", 1, NULL, 'F'}, {"function", 1, NULL, 'P'}, {"host", 1, NULL, 'h'}, {"ignore-version", 0, NULL, 'i'}, {"index", 1, NULL, 'I'}, So, -i may be mapped wrong, however, -I is illegal option. Thanks! Jie Liang