Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 765966324EB for ; Tue, 18 May 2010 20:14:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15629-02 for ; Tue, 18 May 2010 23:14:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web51901.mail.re2.yahoo.com (web51901.mail.re2.yahoo.com [206.190.48.64]) by mail.postgresql.org (Postfix) with SMTP id D24A8632297 for ; Tue, 18 May 2010 20:14:50 -0300 (ADT) Received: (qmail 64867 invoked by uid 60001); 18 May 2010 23:14:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1274224489; bh=hgtp/Hp8aLnEMWtKuBBpzahDJEmhuccz2WFwvl/tTA4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=YK9CUW59NJwtBpo806psddjI6LV/tdLR4pP3s2950RnrTafpCxDy/eQNmypTn2764q6sw6Y10KVXQiB+ikUkwnaTt1Ftj6T7u84dqUZyhoYsOcQjB6joOzXoMsccJ85Pw6aM1DCldJsaF3ollpORt0Jo9Pa6LtVwdVi36DHbaWU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Va3yWxTvEaVpSwPOA/7wc/wcwtC32wZSu3nxs+Fh8wf9YEe/KuICJX4dZkXEJs94khu0rwZPTXtOYGmhELHiUa1n0WWy4IQ3nDd4nFUpYuQg9YOqVYRuCiPlW1I6cRvz7sCG0dPq1ig88RYVIEEfxTgtq/qgxj0+MvSvnVvpjsg=; Message-ID: <384163.64826.qm@web51901.mail.re2.yahoo.com> X-YMail-OSG: Ip7YCcMVM1mF6wDdRXahqf2U5ov86rc2gagVwOHTuAFbXtB jXOXDfesZXyfjE_YmmFDNPnrw8Q96cLrSbfczBijQg7aXCYOnyqm7Xi6XHRB BYOVG3spKA8rv1gv0coPci07HdfXN3kk3CRSv.PZOtFklvJx.FWE4zkZvGw. WBg6CxanZMfITLqgFnPHcYj29fqJCCnXYwrKU6NzBJ9LNHdT_wqE3oIET6gG 4YCZffhxUC3PdVoMA8gj8WutKG7Lx6.9OLtCqc0ZAandT20CTTJHB3Cf7szM BGwLm8vTyj_tRda70ZY4YYfHtL0o- Received: from [63.193.205.1] by web51901.mail.re2.yahoo.com via HTTP; Tue, 18 May 2010 16:14:49 PDT X-Mailer: YahooMailClassic/11.0.8 YahooMailWebService/0.8.103.269680 Date: Tue, 18 May 2010 16:14:49 -0700 (PDT) From: Tena Sakai Subject: troubled by pg_dump and pg_restore To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-78956169-1274224489=:64826" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.509 tagged_above=-10 required=5 tests=BAYES_05=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/170 X-Sequence-Number: 34643 --0-78956169-1274224489=:64826 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Everybody, I am a bit troubled by pg_dump and pg_restore.=A0 My platform is redhat linux, Del 64 bit hardware, running postgres 8.3.7. I have a database named canon and I want to move a schema full of tables from canon to a new database named musket.=A0 The schema I am interested in is called tsakai.=A0 Here's what I have done: =A0 $ env | grep PG =A0 PGUSER=3Dpostgres =A0 PGDATABASE=3Dcanon =A0 PGHOST=3Dlocalhost =A0 PGDATA=3D/usr/local/pgsql/data =A0 $ =A0 $ pg_dump -n tsakai > canon_tsakai.sql =A0 $ =A0 $ echo $? =A0 0 =A0 $ =A0 $ pg_restore -l canon_tsakai.sql =A0 pg_restore: [archiver] input file does not appear to be a valid archive =A0 $=20 =A0 $ pg_restore -d musket canon_tsakai.sql =A0 pg_restore: [archiver] input file does not appear to be a valid archive Can someone please tell me (1) if there is anything wrong with my invocatio= n of pd_dump?=A0 (I want to generate a file pd_restore can use to feed to musket database.)=A0 (2) Why pg_restore wouldn't give me listing?=A0 And (3= ) why the second pg_restore command is upset? Thank you. Regards, Tena sakai --0-78956169-1274224489=:64826 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Everybody,

I am a bit troubled by p= g_dump and pg_restore.  My platform is
redhat linux, Del 64 bit har= dware, running postgres 8.3.7.
I have a database named canon and I want = to move a schema full of
tables from canon to a new database named muske= t.  The schema I
am interested in is called tsakai.  Here's wh= at I have done:

  $ env | grep PG
  PGUSER=3Dpostgres  PGDATABASE=3Dcanon
  PGHOST=3Dlocalhost
  PGDATA= =3D/usr/local/pgsql/data
  $
  $ pg_dump -n tsakai > can= on_tsakai.sql
  $
  $ echo $?
  0
  $
&n= bsp; $ pg_restore -l canon_tsakai.sql
  pg_restore: [archiver] inpu= t file does not appear to be a valid archive
  $
  $ pg_re= store -d musket canon_tsakai.sql
  pg_restore: [archiver] input fil= e does not appear to be a valid archive

Can someone please tell me (1) if ther= e is anything wrong with my invocation
of pd_dump?  (I want to gene= rate a file pd_restore can use to feed to
musket database.)  (2) Wh= y pg_restore wouldn't give me listing?  And (3)
why the second pg_r= estore command is upset?

Thank you.

Regards,

Tena saka= i
--0-78956169-1274224489=:64826--