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

Поиск
Список
Период
Сортировка
От Daulat Ram
Тема RE: Can we have multiple tablespaces with in a database.
Дата
Msg-id MN2PR01MB5854A53D30A32F75369688729B120@MN2PR01MB5854.prod.exchangelabs.com
обсуждение исходный текст
Ответ на Re: Can we have multiple tablespaces with in a database.  (amul sul <sulamul@gmail.com>)
Ответы Re: Can we have multiple tablespaces with in a database.  (amul sul <sulamul@gmail.com>)
Re: Can we have multiple tablespaces with in a database.  (amul sul <sulamul@gmail.com>)
Re: Can we have multiple tablespaces with in a database.  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-general

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.

 

Also , what are the differences between Oracle and Postgres Tablespacs?

 

Thanks,

 

 

From: amul sul <sulamul@gmail.com>
Sent: Friday, February 21, 2020 11:48 AM
To: Daulat Ram <Daulat.Ram@exponential.com>
Cc: pgsql-general@lists.postgresql.org; pgsql-performance@lists.postgresql.org
Subject: Re: Can we have multiple tablespaces with in a database.

 

 

 

On Fri, Feb 21, 2020 at 11:31 AM Daulat Ram <Daulat.Ram@exponential.com> wrote:

Hi Amul ,

Please share the examples how we can create no. of tablespaces for a single database and how we can use them.

As I know we can create database on tablespace

  1. CREATE TABLESPACE conn_tbs OWNER enterprisedb LOCATION '/mnt/pgdatatest/test/pgdata/conn_tbs';
  2. Create database test tablespace ‘conn_tbs';

Maybe I have misunderstood your question; there is no option to specify more
than one tablespace for the database, but you can place the objects of that
database to different tablespaces (if options available for that object).
E.g. you can place a table in than conn_tbs tablespace.

If option is not specified then by default that object will be created
in conn_tbs.

 

Regards,

Amul

 

 

 

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

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