Re: Add pre-existing tablespace to new installation
От | Scott Mead |
---|---|
Тема | Re: Add pre-existing tablespace to new installation |
Дата | |
Msg-id | d3ab2ec80906090718k265485bar6e8e52b0e5394372@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Add pre-existing tablespace to new installation (Roland Hughes <roland@logikalsolutions.com>) |
Ответы |
Re: Add pre-existing tablespace to new installation
|
Список | pgsql-admin |
On Tuesday 09 June 2009 08:55:18 am Tino Schwarze wrote:
>
> You just need to preserve everything from Postgres' data directory
> (which shouldn't be much data).
>
While it shouldn't be much data, it is also non-robust. With robust databases, you can create as many databases as you want in as many places as you want. A "fresh install" means that you only have to "tell" the database monitor about those places again. Everything is still there and usable.
It's really sad that PostgreSQL doesn't have an ADD TABLESPACE command or the functionality built into CREATE TABLESPACE to recognize a tablespace already exists and simply recreate the entry for it in the default tablespace. When one creates an entire database in this new tablespace, PostgreSQL should need nothing other than to know the tablespace exists as everything else should be stored in that tablespace.
В списке pgsql-admin по дате отправления: