Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNX7k-0006Je-KB for pgsql-general@arkaria.postgresql.org; Wed, 30 Sep 2020 08:06:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNX7j-0001Kk-FZ for pgsql-general@arkaria.postgresql.org; Wed, 30 Sep 2020 08:06:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNX6s-0000tk-RO for pgsql-general@lists.postgresql.org; Wed, 30 Sep 2020 08:05:10 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kNX6m-0003Md-VI for pgsql-general@postgresql.org; Wed, 30 Sep 2020 08:05:10 +0000 Received: by mail-wm1-x32a.google.com with SMTP id e2so687789wme.1 for ; Wed, 30 Sep 2020 01:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=g4ypLYXTS7Hn2GIFTMLmFdWdLoiijxIJg2SMQIncYzk=; b=JddbQ59jtGTOMqNRstk3RVK4TkjPR66Cps9yEHYpO0BZ5B3zK5tugC6eJ0UXpHB0h/ wRqw7pnNHjB6rikp8rpdVL2CZ16ML8oxZeMXYjAZRJyvme/UF6HwTO/ojfRz1SLwUM+L di6gmCzDs/1CiRXjDgvj+RhwPCmbhJ6XUIOTP59PVUXLdrJMw3tu5pojh+18dTq9YGhS ScyOg0EWqbMKldE77cwlk7BxSMVtasPiS7XvY1RFz4K5zbtpqMnCRljlDj9a5rmZWc7o A9P6o9vgWsR1j+CzMrgSWDn0l/xhJXlb7bGlCtbHn1T4KjQe5EwoVKmXNYsNLFehZ/Kb t3dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=g4ypLYXTS7Hn2GIFTMLmFdWdLoiijxIJg2SMQIncYzk=; b=blwPb+Gl/WUwW6+9OSJd0G14GKlupZVwdC7+224RmcYPLvS1fIzifSPgrG+htYQA6a G6XZK8SWRFOJcDcVVkiRKIUe12fK91jk0jNIm0FicMerv/NTQAaFozQs0T9dR6DngASd b+g6msF9R4IFmsvNR6lFNeC5cqQUJE58I7sMWSGh/3N27cstTKQ6ClvuKrJSG68OKYUk ZuXQuNlG6BYkmiD2PjFsKR5pNQTXBXdJcSsXkEapWZXz9NUOaG/iz89U57JLX8BImL2P xQLK+QcB3wHQz+Gqa0/CXFlZAsyCzzPovSFzOJKG690jM6V8U9FfbhCtl+aldjxQJM+Z kFyA== X-Gm-Message-State: AOAM533DOMfaT3hJ3sFx+f9QrdzTyrIKcV1vXYFUCpybnRRBwZhxeskW XRReicBvh5552wLp7JZWf0LjaH94BDU= X-Google-Smtp-Source: ABdhPJxz81hAB4uceqb3+MlfAWyYa3GlnkN4ChZc4IGe3IO/0c00V0LzoPnBGDvPjr9PCBUwoooIrg== X-Received: by 2002:a7b:c151:: with SMTP id z17mr1650097wmi.53.1601453103366; Wed, 30 Sep 2020 01:05:03 -0700 (PDT) Received: from PADOUE (169-121-103-94.ftth.cust.kwaoo.net. [94.103.121.169]) by smtp.gmail.com with ESMTPSA id k5sm1374366wmb.19.2020.09.30.01.05.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2020 01:05:02 -0700 (PDT) From: =?iso-8859-1?Q?Olivier_Lepr=EAtre?= To: "'pgsql-general'" Subject: Postgres going very slow Date: Wed, 30 Sep 2020 10:05:01 +0200 Message-ID: <035501d69700$663f7fc0$32be7f40$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0356_01D69711.29CAC0C0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdaW/489zqwYgqB3RROeWnFsfO3Adg== Content-Language: fr X-Antivirus: Avast (VPS 200929-4, 29/09/2020), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_0356_01D69711.29CAC0C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. Postgre= s 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 tablespac= e but as we work with schemas as a whole, it doesn=92t seems to be adequate. I tried to see if it as possible to distribute schemas on different folders= but it doesn=92t seems possible in the same database. Would a solution be to create different databases which is possible but mor= e 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 =E9lectronique a =E9t=E9 v=E9rifi=E9e p= ar le logiciel antivirus Avast. https://www.avast.com/antivirus ------=_NextPart_000_0356_01D69711.29CAC0C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

 

We = have a database which is getting very slow. Pgadmin 3 is alos very slow, re= quiring 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, 4= 8 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 t= o distribute schemas on different folders but it doesn’t seems possib= le in the same database.

Wou= ld a solution be to create different databases which is possible but m= ore complex to manage from a development point of view ?<= /p>

Does going to postgres 64 could improve things=  ?

Any suggestions = ;?

 <= /p>

Thanks very much !

<= p class=3DMsoNormal> 

<= span style=3D'font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F49= 7D'>Olivier


3D"" Garant= i sans virus. www.avast.com
=
------=_NextPart_000_0356_01D69711.29CAC0C0--