Re: Tablespace size in TB

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: masheed ullah <masheedullah(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Tablespace size in TB
Date: 2026-05-03 12:18:01
Message-ID: a7733b8abeb0449d972f1cf88975f1a0971706a7.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 data 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 reference.

Normally, using tablespaces won't speed up processing or backup; it just makes
administration slightly more complicated.
You shouldn't have created a tablespace in the first place (the default tablespace
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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2026-05-03 12:21:23 Re: Tablespace size in TB
Previous Message Jan Karremans 2026-05-03 12:10:41 Re: Tablespace size in TB