Re: New tablespace: just an advice

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: New tablespace: just an advice
Date: 2018-10-16 08:18:25
Message-ID: 2575708954513e34667ad6404b5237377902e573.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Moreno Andreo wrote:
> Now, 2 questions.
> 1. Is it all or do I need to adjust something else about permissions,
> indexes, vacuuming, etc...?
> ALTERing the database namespace means copying its physical files to new
> directory, but is it applied to all objects (indexes, triggers, etc)?

All objects that are located in the default tablespace of the database
will be moved.

> 2. What will happen to who tries to access the database while it's being
> moved from one tablespace to another?

They will be "hanging" with a lock until the transaction is done.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nicola Contu 2018-10-16 09:04:20 Swap on postgres master server
Previous Message Colin Coles 2018-10-16 08:12:40 Re: Problem creating a database