PG 9 adminstrations

Поиск
Список
Период
Сортировка
От Hany ABOU-GHOURY
Тема PG 9 adminstrations
Дата
Msg-id CAEjHQvk31VQWAONdd_CT80ode4pr+0UvOUy9rqeWuxtX=Dh+Nw@mail.gmail.com
обсуждение исходный текст
Ответы Re: PG 9 adminstrations  (Derrick Rice <derrick.rice@gmail.com>)
Список pgsql-performance
Hi all,

I am trying to update / refresh one table (history) only from prod. database to my test environment database
my query as follows:

pg_dump -h <hostname1> -U postgres -t history DATABASENAME | psql -h hostname2 -U postgres -t history DATABASENAME > db.sql

but I am getting the following error

psql: FATAL:  database "history" does not exist


Can you help please?

what would be the script if I want more than one table (3 tables to refresh)

Kind regards

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Prepared statements and suboptimal plans
Следующее
От: Derrick Rice
Дата:
Сообщение: Re: PG 9 adminstrations