public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Paquier <[email protected]>
To: Godfrin, Philippe E <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: toast tables and toast indexes
Date: Tue, 4 Jan 2022 21:30:57 +0900
Message-ID: <[email protected]> (raw)
In-Reply-To: <SA0PR15MB39330D3E1C0E9892CEF14E5082439@SA0PR15MB3933.namprd15.prod.outlook.com>
References: <SA0PR15MB39330D3E1C0E9892CEF14E5082439@SA0PR15MB3933.namprd15.prod.outlook.com>
On Tue, Dec 28, 2021 at 01:10:53PM +0000, Godfrin, Philippe E wrote:
> While experimenting with toast tables I noticed that the toast index
> lands in the same tablespace as the toast table itself. Is there a
> way to make the toast indexes create in a different tablespace?
No. See create_toast_table() where the toast table and its index use
the same tablespace as the relation they depend on.
Now, you could use allow_system_table_mods and an ALTER INDEX .. SET
TABLESPACE to change that for the index, but this is a developer
option and you should *not* use that for anything serious:
https://www.postgresql.org/docs/devel/runtime-config-developer.html
"Ill-advised use of this setting can cause irretrievable data loss or
seriously corrupt the database system."
--
Michael
Attachments:
[application/pgp-signature] signature.asc (833B, ../[email protected]/2-signature.asc)
download
view thread (2+ messages)
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: toast tables and toast indexes
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox