pg_dump without setting search_path

Поиск
Список
Период
Сортировка
От gzh
Тема pg_dump without setting search_path
Дата
Msg-id 4ee8e848.1efe.182d2e88b8c.Coremail.gzhcoder@126.com
обсуждение исходный текст
Ответы Re: pg_dump without setting search_path  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

When I use pg_dump to export schema from a database, it adds the following line at the beginning:


SELECT pg_catalog.set_config('search_path', '', false);


Is it possible set an option where pg_dump will not add this line? 

It is causing issues later when I try to execute other SQL commands, without the schema qualifier.


This is the pg_dump command I am using right now:


pg_dump -O -x -h <db-host> -p <db-port> -U <db-user> -d <db-name> --schema public --schema-only > public-schema.sql

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

Предыдущее
От: Bryn Llewellyn
Дата:
Сообщение: Greg Sabino Mullane ? Re: Two questions about "pg_constraint"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump without setting search_path