pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jie Liang <jie@stbernard.com>
Cc: 'Jan Wieck' <JanWieck@Yahoo.com>
Cc: 'admin@postgresql.org' <admin@postgresql.org>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: pg_restore cannot restore index
Date: Sat, 13 Jul 2002 10:50:59 -0400 (EDT)
Message-ID: <200207131450.g6DEoxE23984@candle.pha.pa.us> (raw)
In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2119@MAIL01.stbernard.com>

Jie Liang wrote:
> On this point, I'd like to ask:
> 1. where I can download this new version?
> 2. does
> pg_restore --index=aa --dbname=test /bjm/x
> works also???

OK, the attached patch should allow -I to work in 7.2.X.  This will all
be fixed in 7.3.
  
> Because
> pg_restore --table=mytable --dbname=mydb mydumpfile
> doesn't work!

Is this a different problem?  --table doesn't work either?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Attachments:

/bjm/diff (text/plain, 670B) download *** ./pg_restore.c.orig Sat Jul 13 10:45:43 2002 --- ./pg_restore.c Sat Jul 13 10:45:55 2002 *************** *** 163,171 **** } #ifdef HAVE_GETOPT_LONG ! while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lL:NoOp:P:rRsS:t:T:uU:vWxX:", cmdopts, NULL)) != -1) #else ! while ((c = getopt(argc, argv, "acCd:f:F:h:i:lL:NoOp:P:rRsS:t:T:uU:vWxX:")) != -1) #endif { switch (c) --- 163,171 ---- } #ifdef HAVE_GETOPT_LONG ! while ((c = getopt_long(argc, argv, "acCd:f:F:h:iI:lL:NoOp:P:rRsS:t:T:uU:vWxX:", cmdopts, NULL)) != -1) #else ! while ((c = getopt(argc, argv, "acCd:f:F:h:iI:lL:NoOp:P:rRsS:t:T:uU:vWxX:")) != -1) #endif { switch (c)

view thread (12+ messages)  latest in thread

Message-ID: <200207131450.g6DEoxE23984@candle.pha.pa.us>
Permalink:  ../200207131450.g6DEoxE23984@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200207131450.g6DEoxE23984@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, jie@stbernard.com, JanWieck@Yahoo.com, admin@postgresql.org
  Subject: Re: pg_restore cannot restore index
  In-Reply-To: <200207131450.g6DEoxE23984@candle.pha.pa.us>

* 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