Re: dump-restore only one table

From: Richard Huxton <dev(at)archonet(dot)com>
To: Alexander Kuprijanov <sanya-spb(at)list(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dump-restore only one table
Date: 2007-05-01 10:41:38
Message-ID: 46371962.4000904@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alexander Kuprijanov wrote:
> I do:
> ==============
> pg_dump -d BaseA --port=54321 --host=localhost --table=TableA --data-only -F
> c -v | pg_restore -d
> BaseB --data-only --no-owner --table=TableA --single-transaction -v
> ==============

> But <BaseB.TableA> wasn't updated.... why??

I'm not sure you can pipe the custom format between pg_dump and
pg_restore (it's got compressed sections). Either:
1. Use a temporary file
2. pipe the standard format to psql

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Suresh Nimbalkar 2007-05-01 11:29:08 Password authentication failed
Previous Message Alexander Kuprijanov 2007-05-01 10:00:38 dump-restore only one table