Re: pg_dump and search_path

Поиск
Список
Период
Сортировка
От Ryan Lambert
Тема Re: pg_dump and search_path
Дата
Msg-id CAN-V+g9ydM5w9gkUCyobJVbY11T5WPVo6grpNGhKFZCX99Cs1w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dump and search_path  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: pg_dump and search_path  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
My exact situation was a deployment via sqitch,  It appears that uses psql under the hood based on the error message I get.

Running just "sqitch deploy" I  get an error due to a non-fully qualified name and a missing search path (my mistakes).  The error I get:

 + 004 .. psql:deploy/004.sql:72: ERROR:  relation "vobservations" does not exist
LINE 11:                FROM vobservations
                             ^
not ok
"psql" unexpectedly returned exit value 3

Reverting all changes

Running the following works for me in this case and allows it to find the view in the proper schema.

PGOPTIONS='-c search_path=piws,public' sqitch deploy

Ryan

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

Предыдущее
От: Steve Atkins
Дата:
Сообщение: Re: DRY up GUI wiki pages
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_dump and search_path