Re: search_path when restoring to new db

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: search_path when restoring to new db
Дата
Msg-id 457ED856.4080906@archonet.com
обсуждение исходный текст
Ответ на Re: search_path when restoring to new db  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Richard Huxton <dev@archonet.com> writes:
>> True enough, but I'd think you could make a good argument that dumping a
>> database should dump any ALTER commands that are attached to it.
>
> Let's suppose pg_dump did that, so "pg_dump foo >foo.dump" includes
> commands like
>
>     ALTER DATABASE foo SET ...
>
> Now what happens when you try to load the script in database bar?
> Nothing very good ...

Which would point to the need to allow "ALTER DATABASE
current_database()" or similar I'd say.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unrecognized time zone name error.
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PostgreSQL Developer Full-time Position