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 1oOZBp-0007Ts-J5 for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 06:39:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOZBo-0001PP-Ew for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 06:39:36 +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 1oOZBn-0001Bl-VK for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 06:39:36 +0000 Received: from mx3.wp.pl ([212.77.101.9]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOZBl-0006HI-VB for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 06:39:35 +0000 Received: (wp-smtpd smtp.wp.pl 36185 invoked from network); 18 Aug 2022 08:39:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1660804767; bh=D6JDSHAvl2fQouzyRiRfNEMWLqAiQmUim/IU8FdtHv8=; h=To:From:Subject; b=Spcq0qU5XGCZDsT7wl38J4/Z5ngYIide4hdm56NQSFFH0W5X4i47u8fuWFOg4c4k5 tZ2AhARjY9esbUj3JhXfDoyR45icpLRSuw5NcDoqIszv/oYVl54dLaV8dA41trXRWp T+r9WsluXTkCdLn3Zem8FMdSpU50qAR8qlish7e0= Received: from 83.24.235.174.ipv4.supernova.orange.pl (HELO [192.168.1.200]) (laurentp@wp.pl@[83.24.235.174]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 18 Aug 2022 08:39:27 +0200 To: pgsql-general@lists.postgresql.org From: "W.P." Subject: Is it possible to keep indexes on different disk location? Message-ID: Disposition-Notification-To: "W.P." Date: Thu, 18 Aug 2022 08:39:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WP-MailID: 2c3c666c84351ff927144cd70d4e2cd7 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [4IOU] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi there, I have a PostgreSQL 11 server on OrangePi3 (ARM 64 bit, Armbian, PG from distro). Database (all cluster) is located on USB disk. This approach give me already 2 times loosing DB contents (it is a replica of DB on i7). But the whole thing (mainly indexes) is about 50G, and internal storage is only 32GB. Is it possible to move  DB tables etc to this internal storage (sure connection) and put only    indexes on USB  HDD? And will it help in case of losing connection to USB disk? (DB recoverable instead of total crash)? Laurent