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 1gCLQ2-0003SC-Hw for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 09:13: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 1gCLPz-0005CI-0K for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 09:13:35 +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 1gCLPy-0005CA-Ob for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 09:13:34 +0000 Received: from evolu-s.it ([94.23.66.144] helo=smtp.evolu-s.it) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1gCLPu-0003kb-Vw for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 09:13:34 +0000 Received: from [192.168.1.163] ([79.6.30.247]) by smtp.evolu-s.it ; Tue, 16 Oct 2018 11:13:29 +0200 Subject: Re: New tablespace: just an advice To: pgsql-general@lists.postgresql.org References: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at> From: Moreno Andreo Message-ID: <39c299c7-9c10-ebe9-8841-68560c9e8deb@evolu-s.it> Date: Tue, 16 Oct 2018 11:13:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <2575708954513e34667ad6404b5237377902e573.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Il 16/10/2018 10:18, Laurenz Albe ha scritto: > 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 Perfect! Thanks for your time, Moreno