Re: Stream pg_dumpall directly from CentOS7 to Red Hat server

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Stream pg_dumpall directly from CentOS7 to Red Hat server
Дата
Msg-id d3077ef8746e982190144b050b59b06df0e96237.camel@cybertec.at
обсуждение исходный текст
Ответ на Stream pg_dumpall directly from CentOS7 to Red Hat server  (Wasim Devale <wasimd60@gmail.com>)
Ответы Re: Stream pg_dumpall directly from CentOS7 to Red Hat server
Re: Stream pg_dumpall directly from CentOS7 to Red Hat server
Список pgsql-admin
On Sun, 2024-07-28 at 13:09 +0530, Wasim Devale wrote:
> Can I use below command directly stream pg_dumpall from CentOS7 to RedHat 9:
>
> pg_dumpall -U postgres | ssh postgres@redhat_ip_address "psql -U postgres"

No idea, but the correct way is

  pg_dumpall -U postgres | psql -h redhat_ip_address -U postgres

Yours,
Laurenz Albe



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