Re: Question about index on different tablespace and rebuild it

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Condor <condor(at)stz-bg(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Question about index on different tablespace and rebuild it
Date: 2018-11-07 01:51:28
Message-ID: CAECtzeWx2zu=NLCJnCwmr4WRz7=42JWB5T3cngg6xxrA41=6KA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le mar. 6 nov. 2018 20:49, Condor <condor(at)stz-bg(dot)com> a écrit :

> On 05-11-2018 10:56, Condor wrote:
> > Hello,
> >
> > I have a database that use index on different table space (nvme). I
> > read documentation about table space and understand table space cannot
> > be treated as an autonomous collection of data files.
> > My question is: Is this always true ? I mean if I have table .. okay
> > here is example:
> >
> > create table t1 ( i integer);
> > create index t1_i_idx on t1 using btree (i) tablespace nvme;
> >
> > In this case only the index is on different table space nvme that is
> > not part of data stored into table, I mean if I drop the index, data
> > stored in table will still be untouched and not damaged.
> > So in this case if I lost table space nvme that is stored into
> > different nvme drive, can I insert new one and rebuild all index files
> > with reindexdb for example or some other tool like
> > mysql/mariadb for example myismcheck or something like that, that can
> > rebuild index files when DB sever is offline ?
> >
> >
> > Regards,
> > HS
>
>
> Some one can answer ?
>

Not sure I really understand your question but to do a reindex, you need
the database server to be online.

>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Saikumar 2018-11-07 03:25:07 Postgres 8.3 Grant all on database or schema
Previous Message rob stone 2018-11-07 00:30:18 Re: Running pg_upgrade Version 11