pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jie Liang <jie@stbernard.com>
To: 'pjw@rhyme.com.au' <pjw@rhyme.com.au>
Cc: 'admin@postgresql.org' <admin@postgresql.org>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: pg_restore cannot restore index
Date: Tue, 9 Jul 2002 14:00:48 -0700
Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.com> (raw)




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




view thread (12+ messages)  latest in thread

Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.com>
Permalink:  ../7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.com/
Also on:    postgresql.org/message-id/7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jie@stbernard.com, pjw@rhyme.com.au, admin@postgresql.org
  Subject: Re: pg_restore cannot restore index
  In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2115@MAIL01.stbernard.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