From: Karthik Krishnakumar <karthikk@zohocorp.com>
To: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Max tables in a cluster?
Date: Wed, 05 Apr 2023 12:37:41 +0530
Message-ID: <18750398329.1002ca2ba316.8870907212977424118@zohocorp.com> (raw)
Hi admins,
Is there a limit to number of tables that a cluster can support?
At the moment, one of my clusters has about 250k user tables (plus 150k toast tables) across a hundred schemas within a single database.
My application team wants to double the number of schemas (and with it the tables)
I am looking for both pros and cons of doing this and what tuning can help this cluster perform acceptably.
My questions are
1. Is there a limit to number of tables a cluster can support effectively?
2. My guess is autovacuum would have to be tuned. Current gucs for this are
max_autovacuum_workers = 6
maintenance_work_mem = 1GB
autovacuum_vacuum_scale_factor = 0.2
autovacuum_vacuum_cost_delay = 20ms
Are there any potential problems that I need to think about ?
My machine specs are as below.
RAM 256GB
32-core CPU
7TB SSD
thanks
karthik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: karthikk@zohocorp.com, pgsql-admin@lists.postgresql.org
Subject: Re: Max tables in a cluster?
In-Reply-To: <18750398329.1002ca2ba316.8870907212977424118@zohocorp.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox