pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Moreno Andreo <moreno.andreo@evolu-s.it>
To: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: New tablespace: just an advice
Date: Tue, 16 Oct 2018 10:18:25 +0200
Message-ID: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at> (raw)
In-Reply-To: <cfb7a3f5-2cf6-59a5-2fd2-5b27b3b4bae1@evolu-s.it>
References: <cfb7a3f5-2cf6-59a5-2fd2-5b27b3b4bae1@evolu-s.it>

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





view thread (3+ messages)  latest in thread

Message-ID: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at>
Permalink:  ../2575708954513e34667ad6404b5237377902e573.camel@cybertec.at/
Also on:    postgresql.org/message-id/2575708954513e34667ad6404b5237377902e573.camel@cybertec.at

 · 

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 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: laurenz.albe@cybertec.at, moreno.andreo@evolu-s.it
  Subject: Re: New tablespace: just an advice
  In-Reply-To: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at>
  References: <cfb7a3f5-2cf6-59a5-2fd2-5b27b3b4bae1@evolu-s.it> <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at>

* 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