Re: pg_restore cannot restore index

From: Jie Liang <jie(at)stbernard(dot)com>
To: "'pjw(at)rhyme(dot)com(dot)au'" <pjw(at)rhyme(dot)com(dot)au>
Cc: "'admin(at)postgresql(dot)org'" <admin(at)postgresql(dot)org>, "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: pg_restore cannot restore index
Date: 2002-07-09 21:00:48
Message-ID: 7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-07-10 02:58:49 Re: pg_restore cannot restore index
Previous Message Jie Liang 2002-07-09 19:44:55 pg_restore cannot restore index