RE: Max# of tablespaces

From: Thomas Flatley <FLATLEYT(at)outlook(dot)com>
To: Christophe Pettus <xof(at)thebuild(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Max# of tablespaces
Date: 2021-01-05 22:10:21
Message-ID: MW4PR01MB609987BD0D077D28CB86DAC8C7D10@MW4PR01MB6099.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I agree - it requires a re-think/re-build

As for oracle, quite easy to add tablepaces in flight, assuming you don’t hit max db_files

I was more curious if there was an actual defined limit - oracle stops at 64K , and their old application release would have 2tbsp per module, and at 400 or so that’s a hassle

-----Original Message-----
From: Christophe Pettus <xof(at)thebuild(dot)com>
Sent: Tuesday, January 5, 2021 5:02 PM
To: Thomas Flatley <FLATLEYT(at)outlook(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>; pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Max# of tablespaces

> On Jan 5, 2021, at 13:55, Thomas Flatley <FLATLEYT(at)outlook(dot)com> wrote:
>
> As far as I can tell, each tablespace is a partition, and I assume they felt this was the best way to perform partition maintenance - again, I don’t know ,

It's a very common Oracle-ism to have a lot of tablespaces, in part because (IIRC) Oracle makes it an incredible pain in the neck to add tablespaces once the DB is in use. For sharding purposes, you probably want schemas in PostgreSQL instead of tablespaces, although having that many schemas is going to not be optimal, either.

--
-- Christophe Pettus
xof(at)thebuild(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message H 2021-01-06 01:58:29 PostgreSQL 13 on CentOS 7
Previous Message Christophe Pettus 2021-01-05 22:05:51 Re: FTS and tri-grams