From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: running out of disk space
Date: Thu, 09 May 2019 09:15:46 -0700
Message-ID: <d92e9ca9af415f2fb93c3f43bb9ebe2928436cd8.camel@lists.simkin.ca> (raw)
In-Reply-To: <BYAPR08MB50148F4C9E3FE5505F634399AC330@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50148F4C9E3FE5505F634399AC330@BYAPR08MB5014.namprd08.prod.outlook.com>
On Thu, 2019-05-09 at 15:46 +0000, Julie Nishimura wrote:
> hello,
>
> We are running out of disk space, and we introduced new volume to it.
> I am about to create new tablespace X and alter user databases to set
> to this new tablespace X. So, all new tables will be created in X,
> but what about existing tables on previous volume?
> Its data will be split between 2 tbspaces?
>
>
>
>
>
>
>
> Please clarify. Thank you!
>
>
>
>
Tables and indexes can only be on one tablespace. You'll need to
individually move them with alter table and alter index. They will be
locked while being moved. You should experiment with this on a test
server to learn how it works.
However, unless your new volume has different I/O characteristics than
the existing volume you really shouldn't use tablespaces. You should
use your OS volume manager and filesystem tools to extend the data
volume and filesystem into the new space. This will be much easier to
manage. I'm sure your system administrator can assist you with this.
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: ahodgson@lists.simkin.ca, juliezain@hotmail.com
Subject: Re: running out of disk space
In-Reply-To: <d92e9ca9af415f2fb93c3f43bb9ebe2928436cd8.camel@lists.simkin.ca>
References: <BYAPR08MB50148F4C9E3FE5505F634399AC330@BYAPR08MB5014.namprd08.prod.outlook.com> <d92e9ca9af415f2fb93c3f43bb9ebe2928436cd8.camel@lists.simkin.ca>
* 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