Re: pg_dump weirdness

Поиск
Список
Период
Сортировка
От MichaelDBA
Тема Re: pg_dump weirdness
Дата
Msg-id b3e479d6-0f1e-25fd-72bb-f0cdadff067b@sqlexec.com
обсуждение исходный текст
Ответ на pg_dump weirdness  (John Scalia <jayknowsunix@gmail.com>)
Ответы Re: pg_dump weirdness  (John Scalia <jayknowsunix@gmail.com>)
Список pgsql-admin
I think you are pointing to the wrong binaries.

Use the absolute path to your pg_dump binary to make sure you are using the version you think you are using.  For example:
/usr/pgsql-11/bin/pg_dump -h original_server -t original_schema.table_name -U user -W dbname > table_name.sql

And for the target do the same for psql plus add the stop on error parm:
/usr/pgsql-11/bin/psql -h target_server -U user newdbname -v ON_ERROR_STOP=1 < table_name.sql

Regards,
Michael Vitale



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

Предыдущее
От: John Scalia
Дата:
Сообщение: Re: pg_dump weirdness
Следующее
От: dbatoCloud Solution
Дата:
Сообщение: Looking for help to migrate Oracle PL SQL code to PGSQL code