Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXo7a-0004jN-95 for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 15:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXo7Y-0004hN-NF for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 15:11:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXo7Y-0004gk-7P for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 15:11:48 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXo7V-0004X9-Gu for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 15:11:46 +0000 Received: by mail-oi1-x22a.google.com with SMTP id j7so3495300oib.3 for ; Thu, 21 Nov 2019 07:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=XuXCJpcCiIa+SjK2AllhCpE9olAnU6de4LmuBCM0oPA=; b=sSIfA/o5bU6MNbF4rUq2m6FMUmltAtoh/8F8v3PEz1eAVEdd3Y1/nCtDy2XZe0SiKO eTVgv+d1ViYjCRH3D7Px1xhKOXClB+2hVq9920cE8S6C80SJTwzszmUGNOBP7OFWWUHW GPPiFotAQdidElFg8PqAvVUdtdpJ6XlByEx/X1OfcHu4J2w0O7qP9+CwTm7cUsik/c1j N7laAN8DUP9kHlRj/aF2KkXCR7JM1kMXs/QlWRXbZ0XDNImWb4zA3zkOVR6I/M4P6B++ nXXawf+XwJDE49DorWqpmwp92eWSaGAJWsbtEHabw6tCmQr69rFmLw3pLPtbsavgLAel dm3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XuXCJpcCiIa+SjK2AllhCpE9olAnU6de4LmuBCM0oPA=; b=Dsf4c78STZ/ePSrOOS/W4s7BiAQmp6LsmROu9VF0bbFtMGBaUCtCCCWEYFRd5MUbBX UGQo2znriZx3R/lk96qRLE6+ZsTJs3Wshs9fd7ByMH7CJOjLCqj1xGnnjD2q8L4ikzvo yp6bkRmpdt/CYjw8t+Q4EYaqN7nIFFFweJGLilDa+shwOBW/+K/cHDMpi8kfCdFnRwBd ioApngj4R9lCgoyiX+CrLxCkNbwqaoHc7RAaUl2TzZMP0VAVR9/tPoUoKrWGdcZto5ei b3oNzMSXw3h78CCfyaSGp1m3V12l/6ogPGAT8Dz+VUceg4r58f0OVnThG1/AziLvyjsG tsSA== X-Gm-Message-State: APjAAAUAH1tFFV7wLPpdwoQHwMga/m50RTNFYD+4yGV4FlLCac3pchbq hDh1fCnB52SMBY3tPUNZj2xysZP123flag== X-Google-Smtp-Source: APXvYqz8bQxSX87bsED1zijsnr1vhZaT18WC2pUbe9Ek6IH4NrJkJ3SVq8Bd7gcbzYSiyZB1umxUEQ== X-Received: by 2002:aca:ebd4:: with SMTP id j203mr7924300oih.141.1574349104395; Thu, 21 Nov 2019 07:11:44 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id 88sm1060541otp.59.2019.11.21.07.11.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2019 07:11:43 -0800 (PST) Subject: Re: Tablespace setup issue To: pgsql-general@lists.postgresql.org References: <734fcddec1c9c75316f81657294d3f5274f6d344.camel@cybertec.at> <1b00f9ad-535a-6c67-b8c8-0a0237167e7a@gmail.com> <6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at> From: Ron Message-ID: <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com> Date: Thu, 21 Nov 2019 09:11:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/21/19 8:59 AM, Laurenz Albe wrote: > On Thu, 2019-11-21 at 08:54 -0600, Ron wrote: >>> Don't create tablespaces. >>> Stick with the default tablespace. >> Why? > Because you won't need them. > > Tablespaces have a limited number of use cases: > - Distribute I/O across several devices (you can do the same > on a lower level using striping). > - Put some tables or indexes faster and some on slower storage. > - Provide a size limit for a table or a database. > - Have your temporary files on a different file system. > > In a virtualized environment, you never want tablespaces. After adding another 350GB to the data/base filesystem, the storage team said that the virtual LUN on our ESX host is full.  No more expansion of this database until and unless they create a new LUN (on storage replicated to a different DC using SRM). Thus, to enlarge the database on this VM, we either... 1. create a tablespace on a different (modest sized) LUN, or 2. create a completely new 10TB LUN and migrate the whole db (including backups) to that new LUN. Honestly, using a new tablespace seems simpler. -- Angular momentum makes the world go 'round.