Re: Can we have multiple tablespaces with in a database.

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Can we have multiple tablespaces with in a database.
Дата
Msg-id 802B6458-8F5B-4AA1-9A6C-3346538A0D46@thebuild.com
обсуждение исходный текст
Ответ на RE: Can we have multiple tablespaces with in a database.  (Daulat Ram <Daulat.Ram@exponential.com>)
Ответы RE: Can we have multiple tablespaces with in a database.
Список pgsql-general

> On Feb 20, 2020, at 22:23, Daulat Ram <Daulat.Ram@exponential.com> wrote:
>
> That will be great if you  share any doc where it’s mentioned that we can’t use multiple tablespace for a single
database.I have to assist my Dev team regarding tablespaces. 

A single PostgreSQL database can have any number of tablespaces.  Each table has to be in one specific tablespace,
althougha table can be in one tablespace and its indexes in a different one. 

If a PostgreSQL table is partitioned, each partition can be in a different tablespace.

Oracle "style" tends to involve a lot of tablespaces in a database; this is much less commonly done in PostgreSQL.  In
general,you only need to create tablespace in a small number of circumstances: 

(a) You need more space than the current database volume allows, and moving the database to a larger volume is
inconvenient;
(b) You have multiple volumes with significantly different access characteristics (like an HDD array and some SSDs),
andyou want to distribute database objects to take advantage of that (for example, put commonly-used large indexes on
theSSDs). 

PostgreSQL tablespaces do increase the administrative overhead of the database, and shouldn't be created unless there
isa compelling need for them./ 

--
-- Christophe Pettus
   xof@thebuild.com




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

Предыдущее
От: amul sul
Дата:
Сообщение: Re: Can we have multiple tablespaces with in a database.
Следующее
От: Daulat Ram
Дата:
Сообщение: RE: Can we have multiple tablespaces with in a database.