From: Daulat Ram <Daulat.Ram@exponential.com>
To: amul sul <sulamul@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: RE: Can we have multiple tablespaces with in a database.
Date: Fri, 21 Feb 2020 06:36:39 +0000
Message-ID: <MN2PR01MB58548ED0C08B829131C1D3209B120@MN2PR01MB5854.prod.exchangelabs.com> (raw)
In-Reply-To: <CAAJ_b97HSMVhDvgRQX4XF64k_ACfKKwkZpeaSVF_CjeuPCF9+A@mail.gmail.com>
References: <MN2PR01MB585418CEA8E057268F18339A9B120@MN2PR01MB5854.prod.exchangelabs.com>
<CAAJ_b954ug=jYDvNUsnHj3j7yGt_p_nN31C7yDA8eafmOBcGOw@mail.gmail.com>
<MN2PR01MB5854F35E70DF08D6B5DD4ECA9B120@MN2PR01MB5854.prod.exchangelabs.com>
<CAAJ_b97HSMVhDvgRQX4XF64k_ACfKKwkZpeaSVF_CjeuPCF9+A@mail.gmail.com>
You mean we can have only single default tablespace for a database but the database objects can be created on different-2 tablespaces?
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<mailto: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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Daulat.Ram@exponential.com, sulamul@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Can we have multiple tablespaces with in a database.
In-Reply-To: <MN2PR01MB58548ED0C08B829131C1D3209B120@MN2PR01MB5854.prod.exchangelabs.com>
References: <MN2PR01MB585418CEA8E057268F18339A9B120@MN2PR01MB5854.prod.exchangelabs.com> <CAAJ_b954ug=jYDvNUsnHj3j7yGt_p_nN31C7yDA8eafmOBcGOw@mail.gmail.com> <MN2PR01MB5854F35E70DF08D6B5DD4ECA9B120@MN2PR01MB5854.prod.exchangelabs.com> <CAAJ_b97HSMVhDvgRQX4XF64k_ACfKKwkZpeaSVF_CjeuPCF9+A@mail.gmail.com> <MN2PR01MB58548ED0C08B829131C1D3209B120@MN2PR01MB5854.prod.exchangelabs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox