pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jie Liang <jie@stbernard.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jie Liang <jie@stbernard.com>
Cc: 'admin@postgresql.org' <admin@postgresql.org>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: pg_restore --flag
Date: Mon, 15 Jul 2002 16:39:23 -0700
Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2128@MAIL01.stbernard.com> (raw)


I tried, I got same error msg.
I even run as user postgres or myself, same same.

My OS=FreeBSD4.3 DB=PostgreSQL7.2



Jie Liang





-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Monday, July 15, 2002 4:25 PM
To: Jie Liang
Cc: 'Jan Wieck'; 'admin@postgresql.org'; 'pgsql-sql@postgresql.org'
Subject: Re: pg_restore cannot restore index


Jie Liang wrote:
> su postgres -c "/usr/local/pgsql/bin/pg_restore --table=mytable
> --dbname=mydb mydumpfile"
> error msg
> pg_restore: [archiver] could not open input file: No such file or
directory
> 
> I run it on 7.2.0

OK, my guess is that the 'su' is moving you to another directory.  Try
specifying the full path of the file, e.g. /var/tmp/mydumpfile.

-- 
  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



Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2128@MAIL01.stbernard.com>
Permalink:  ../7C760DAA511DC74B99E7D22189F786F101BF2128@MAIL01.stbernard.com/
Also on:    postgresql.org/message-id/7C760DAA511DC74B99E7D22189F786F101BF2128@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, pgman@candle.pha.pa.us, admin@postgresql.org
  Subject: Re: pg_restore --flag
  In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2128@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