pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: W.P. <laurentp@wp.pl>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is it possible to keep indexes on different disk location?
Date: Thu, 18 Aug 2022 21:54:08 +0200
Message-ID: <bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl> (raw)
In-Reply-To: <5f4e76c742f8fb81ef01abe3b8f51a1219a431a5.camel@cybertec.at>
References: <a5899b4c-e254-8a6c-4217-1b02d9430847@wp.pl>
	<5f4e76c742f8fb81ef01abe3b8f51a1219a431a5.camel@cybertec.at>

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







view thread (5+ messages)  latest in thread

Message-ID: <bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl>
Permalink:  ../bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl/
Also on:    postgresql.org/message-id/bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl

 · 

reply

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: laurentp@wp.pl
  Subject: Re: Is it possible to keep indexes on different disk location?
  In-Reply-To: <bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl>
  References: <a5899b4c-e254-8a6c-4217-1b02d9430847@wp.pl> <5f4e76c742f8fb81ef01abe3b8f51a1219a431a5.camel@cybertec.at> <bdabb74f-dea1-4311-5832-c3e92f0c818a@wp.pl>

* 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