try:
pg_dump -h <hostname1> -U postgres -t history DATABASENAME | psql -h hostname2 -U postgres DATABASENAME > db.sql
Derrick
On Tue, Sep 20, 2011 at 11:57 PM, Hany ABOU-GHOURY <hghoury@xxxxxxxxx> wrote:
Hi all,I am trying to update / refresh one table (history) only from prod. database to my test environment databasemy query as follows:pg_dump -h <hostname1> -U postgres -t history DATABASENAME | psql -h hostname2 -U postgres -t history DATABASENAME > db.sqlbut I am getting the following errorpsql: FATAL: database "history" does not existCan you help please?what would be the script if I want more than one table (3 tables to refresh)Kind regards