Re: Pre-Allocate tablespace on disk

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Pre-Allocate tablespace on disk
Дата
Msg-id m2hbf3n7k3.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Pre-Allocate tablespace on disk  (Chris Ruprecht <chris@ruprecht.org>)
Список pgsql-admin
Chris Ruprecht <chris@ruprecht.org> writes:
> I was wondering if there is a way to pre-allocate tablespace on disk
> before adding data and indexes.

As others have already said, it's not clear there's a point in doing
that with PostgreSQL. Now, you can achieve it and see for yourself by
relying on OS tools, such as LVM of ZFS, or some other tricks.

For example, create a big enough file, loop mount it as a device, and
create your tablespace in there. Of course what to do exactly when the
file is full is left as an exercise to the reader. Bonus points for any
solution not involving downtime.

Baseline: it seems that PostgreSQL works differently enough from your
usual software than you may want to reconsider your habits :)

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support

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

Предыдущее
От: Joshua Tolley
Дата:
Сообщение: Re: [GENERAL] plpyhton
Следующее
От: "Hamza Bin Sohail"
Дата:
Сообщение: large page query