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 1oOlau-0007ju-3Q for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 19:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOlas-0005hF-Sa for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 19:54:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOlas-0005h6-EX for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 19:54:18 +0000 Received: from mx4.wp.pl ([212.77.101.12]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOlap-0003NR-C1 for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 19:54:17 +0000 Received: (wp-smtpd smtp.wp.pl 9128 invoked from network); 18 Aug 2022 21:54:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1660852449; bh=t5q7Y1geGxgFRW3oNjlq+772Nr57valt7jwQKgnNlhs=; h=Subject:To:From; b=N/zy2mZ+qCbO9uGIe+AP8+mPsKwTITpheieRvbERhXxad0OWLjOuhuWbJmBT5a2pj rGsumUEAdvcq/cgQhRF1XpajXQZDn/3br2nuTCmYMJ8RzRy9USy/IYtzOqgwfzr880 vcqpekj8y5TLAPc5+QQoGgLfXtVfOmuZ+bV303gY= 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 21:54:09 +0200 Subject: Re: Is it possible to keep indexes on different disk location? To: pgsql-general@lists.postgresql.org References: <5f4e76c742f8fb81ef01abe3b8f51a1219a431a5.camel@cybertec.at> From: "W.P." Message-ID: Disposition-Notification-To: "W.P." Date: Thu, 18 Aug 2022 21:54:08 +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 In-Reply-To: <5f4e76c742f8fb81ef01abe3b8f51a1219a431a5.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: d9a3aa2f70e920f77b7078ce15521b5d X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [cLM0] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk W dniu 18.08.2022 o 16:46, Laurenz Albe pisze: > On Thu, 2022-08-18 at 08:39 +0200, W.P. wrote: >> 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)? > I'd say that that is a bad idea. It would not be easy to recover from > losing a tablespace, even if it contains only indexes. So do You see any (chaeper) solution for using 40GB DB having only 32 (max) GB of storage I can trust? (uSD card) > Get a real computer. Take backups regularly. Main DB is on "real" i7 8GB / 500 SSD. But You are right, I am taking backups  irregular. It is not critical, but loosing "main" would not be nice... W.P. > Yours, > Laurenz Albe