Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4HCI-0005ci-VH for pgsql-performance@arkaria.postgresql.org; Wed, 19 Feb 2020 04:42:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4HCG-00062X-Jg for pgsql-performance@arkaria.postgresql.org; Wed, 19 Feb 2020 04:42:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4HCF-00062Q-RM for pgsql-performance@lists.postgresql.org; Wed, 19 Feb 2020 04:42:52 +0000 Received: from mx1.riseup.net ([198.252.153.129]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4HCB-0001NE-Sl for pgsql-performance@lists.postgresql.org; Wed, 19 Feb 2020 04:42:50 +0000 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 48MlT03BYFzFcnP for ; Tue, 18 Feb 2020 20:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1582087364; bh=F2oS3hIFa1X66kECOkpmZJ45Nf3iVqsw06aca5G7T2c=; h=From:To:Cc:Subject:Date:From; b=Up8Wqdlex4qh8iugU8KFSYOr6uYJeGn413C/NsS9YBd1mr7OjI/M5GCR6xYCfcOwp DgndiKCrWIvb2laW+HWhCMAJZh0oO+54X2gF+GB7So/kARKtGG9QfjeKw9eegmil+M DbUftG49KBq19B0/1Q/3f6Roo7efWw94FE/NWFmU= X-Riseup-User-ID: D6214B048F62BA853DF96635BB96A089B27DC24560D5C911ED6305A9C8F3A35B Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 48MlSz63s3zJs8Y for ; Tue, 18 Feb 2020 20:42:43 -0800 (PST) From: Nicolas PARIS To: "pgsql-performance\@lists.postgresql.org" Cc: Subject: tablespace to benefit from ssd ? Date: Wed, 19 Feb 2020 05:42:41 +0100 Message-ID: <87ftf7fari.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi I have both hdd and ssd disk on the postgres server. The cluster is right now created on the hdd only. I am considering using a tablespace to put some highly used postgres object on the ssd disk. Of course the ssd is small compared to the hdd, and I need to choose carefully what objects are stored on that side. I am wondering what kind of object (indexes, data) would benefit from ssd. The database primary/foreign keys are highly used and there is almost no sequencial scan. However the server has a large amount of ram memory and I suspect all of those indexes are already cached in ram. I have read that tablespaces introduce overhead of maintenance and introduce complication for replication. But on the other hand I have this ssd disk ready for something. Any recommandation ? -- nicolas paris