From: Olivier Leprêtre <o.lepretre@gmail.com>
To: 'pgsql-general' <pgsql-general@postgresql.org>
Subject: Postgres going very slow
Date: Wed, 30 Sep 2020 10:05:01 +0200
Message-ID: <035501d69700$663f7fc0$32be7f40$@gmail.com> (raw)
Hi,
We have a database which is getting very slow. Pgadmin 3 is alos very slow,
requiring more than 2 minutes to refresh the list of schemas
Machine is a windows server 2016 with Intel Xeon 2,4Ghz, 24 Go Ram. Postgres
9.6/32 bits
Database contains 4000 schemas, each having 164 tables, 48 index. This
generates 3,2 millions files in one folder (which could be an explanation..)
Searching to distribute datas across different disks, I looked at tablespace
but as we work with schemas as a whole, it doesn’t seems to be adequate.
I tried to see if it as possible to distribute schemas on different folders
but it doesn’t seems possible in the same database.
Would a solution be to create different databases which is possible but more
complex to manage from a development point of view ?
Does going to postgres 64 could improve things ?
Any suggestions ?
Thanks very much !
Olivier
--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: o.lepretre@gmail.com
Subject: Re: Postgres going very slow
In-Reply-To: <035501d69700$663f7fc0$32be7f40$@gmail.com>
References: <035501d69700$663f7fc0$32be7f40$@gmail.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