Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJVlv-000VWJ-2Y for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2026 12:18:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJVlu-0036kT-2E for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2026 12:18:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJVlu-0036kL-16 for pgsql-general@lists.postgresql.org; Sun, 03 May 2026 12:18:06 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wJVls-00000000CGQ-25Dw for pgsql-general@lists.postgresql.org; Sun, 03 May 2026 12:18:05 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-488d2079582so35067605e9.2 for ; Sun, 03 May 2026 05:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1777810683; x=1778415483; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=zWu6n4HnUkK0yDrs/4QJKYU1AHDNkXROGdvKBomCNZ4=; b=rx6pk8S+VFgcMABy1p0ycP+MEgWgdp8qT7lRJ1/sajoSQvSx264YW4zVDd3T0/vAvR IVJgeKSyRpnSfRfQ3MaEEm5Q21OZaDkmZwwNAICyuspPwu+XKzrSWMJvUcKg9YHmvmVW 3zRHIztZ3/W4JifPbKH5QMNZElShFh9c5cHgv9RqqIS3mJUSsk5mK4DojmCEkTV7rh7n tWUTxiPNMmbXx3APdTTQ9sD0GfO0P46sW1cDpQZKC/IgZpR9OzcfFKG5bU8H/2Lq1ZIJ IKsuI9VUilgNwZzqAb83AYQgb+3o+jXDe7Ab+1/TLCXaVjKwWqj0jiyQ9Lf1R6Xn33c4 iYdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777810683; x=1778415483; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zWu6n4HnUkK0yDrs/4QJKYU1AHDNkXROGdvKBomCNZ4=; b=FlKlbRYaPLssHHxzoun5hQqDx8zCpQx//7t6eFLCYW7s57vjqsTcxGzpFkz+mZH2TO NOfjAbbSOVooVJ0BxmuxxnP71NXxqwgbHfA2moEy7Fksq8+AxO+UCiVtHTFGQHNBs4aj WIJI8nq3pr8aPgJcBXuAWpnTnrBQ6+RGHHnHzitmeUzxwIf+5KrEufymfvcdJh9JZi8y gD1z3ZCJXvj4oSqVKHAcGt6K7WTYiKjV1aiX1rC8Hr7CNb24hUL9mWDjXM44DQKw53w0 8wTD0gnuAd186MPhZaGdArUU/ZAv4TOjNXhnBE3d5BkK17Gwk8UlKmCCeIJPEBxjkxlC wpCg== X-Forwarded-Encrypted: i=1; AFNElJ9Y0MSpUPxh3+SWqPU8HGXqY0YrgZZ1eKYJ48ov5qLNa8+kB7NSduJkHeLxzTTX+ndq8140hkRZaQjzOyba@lists.postgresql.org X-Gm-Message-State: AOJu0YzO8zCC2ozJLzsi7HNp42/5T2I5txGRD/3YbL7ZnRv63MKZkE+o OWlL+8SrIVxrek4EpsecN1Mv178HHVviLqKUCzsbRT6n4Dt1Xr74LycPUiG8UnQQ7XGw2Lzmtho MjbZqjo0= X-Gm-Gg: AeBDievRwx+nxFknd3xGkTmYWBocDJodWY10QIXTCENxZj5xsQDaj3VlLkbMfwFmztK NzcMDdcCmgQW7416s1SDyKBn9wjEHfK2rPsuZvNqcIauj3WzawOStwvoZE6TWEnJ0T1+Y1kIFVC TVm1RXkV9OmNX1L2scrd8dDauucK1pVNael3IY2FXgc0TSUhOu3UchdJn+OV3pyHxEtE/qGBrlS rxWXUsBrhXVG0jOqxs3e8khfj81V672R496Pg4luctaSVUdzGolrHD+LAv00jWB2CuHwc+nJ5vr I8XL+TwkYMys2JlH2ijr7hCHQMJoxuvzOsugo3ynreTq8Wwz9Pb/BhVZcw6u3AqGj2Dn2vGR23c 0PH4DJG92URxqiDLpZiXy86bhY61iw4EhWj+QpiyTnbDhLIQmVeQD+F4GtwXNgopVkq4y+bnSI1 awFBWVvqfPGL7c0038s3OscwxbDveMAqsLOwR7aaumyqEwlBiAiNY2fy2E4yxwwQxjPA== X-Received: by 2002:a05:600c:3e0c:b0:48a:563c:c8c5 with SMTP id 5b1f17b1804b1-48a98639db8mr106035215e9.8.1777810682858; Sun, 03 May 2026 05:18:02 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4fd5:603f:45c2:9807:c104]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a8feee4d2sm56282715e9.26.2026.05.03.05.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 05:18:02 -0700 (PDT) Message-ID: Subject: Re: Tablespace size in TB From: Laurenz Albe To: masheed ullah , pgsql-general@lists.postgresql.org Date: Sun, 03 May 2026 14:18:01 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2026-05-03 at 12:35 +0300, masheed ullah wrote: > Our team is using a single tablespace for the whole database. Its size is= more than 13TB. > I am from an Oracle background and want to suggest that they split the da= ta in multiple tablespaces. > It will not only improve the performance & reduce the backup time. > But I did not find any Postgres best practice or blog, to show as a refer= ence. Normally, using tablespaces won't speed up processing or backup; it just ma= kes administration slightly more complicated. You shouldn't have created a tablespace in the first place (the default tab= lespace is good), and I don't think you'll benefit from having more tablespaces. To be more precise, a correct answer would depend on your backup method. If you are using storage techniques to copy the 13TB, and those storage techniques become faster if you have more than a single file system, then you could benefit from more tabespaces. Otherwise you won't. What makes sense to split up is large tables. Using partitioning might make the individual partitions easier to maintain. Yours, Laurenz Albe