Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCKYo-0000qi-Bf for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 08:18:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCKYm-00032w-JJ for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 08:18:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCKYm-00032p-Bl for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 08:18:36 +0000 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gCKYg-0002Ya-Oh for pgsql-general@postgresql.org; Tue, 16 Oct 2018 08:18:35 +0000 Received: from smtp2.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 743DD40534; Tue, 16 Oct 2018 10:18:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id wE70D4vh49TU; Tue, 16 Oct 2018 10:18:27 +0200 (CEST) Message-ID: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at> Subject: Re: New tablespace: just an advice From: Laurenz Albe To: Moreno Andreo , PostgreSQL mailing lists Date: Tue, 16 Oct 2018 10:18:25 +0200 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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