From: Jean-Luc Lachance <jllachan@nsd.ca>
To: Marin Dimitrov <marin.dimitrov@sirma.bg>
Cc: Judy Jecelin <jjecelin@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: indexes separate from data
Date: Wed, 03 Apr 2002 14:33:29 -0500
Message-ID: <3CAB5909.F73F001A@nsd.ca> (raw)
References: <20020402222709.35512.qmail@web12802.mail.yahoo.com>
<013201c1dae4$3cd5fca0$9b0e32d4@sirma.bg>
Interesting... What happens when you drop and recreate the index???
Marin Dimitrov wrote:
>
> ----- Original Message -----
> From: "Judy Jecelin"
>
> >
> > Hi,
> >
> > A relatively novice user of PostgreSQL but not
> > of other databases... I'm trying to understand the
> > use of initlocation....I understand having separate
> > data storage areas (perhaps for each database
> > in your postmaster), but is there some way to have
> > a separate location for indexes? How would this
> > be designated through PostgreSQL?
> >
>
> since every index is stored as separate file, you should identify the files
> corresponding to the indexes and move them to the proper device (while the
> database is shut down) then create symlinks in the database directory
> pointing to the moved files
>
> to identify the names of the OS files corresponding to indexes connect to
> the DB and execute
> something like:
>
> select relname, relfilenode
> from pg_class
> where relkind = 'i';
>
> make sure u're moving the files from the proper database directory (execute
> "select datname, oid from pg_database" to see the OS directory name
> corresponding to each database)
>
> tablespaces are in the TODO list, so one day the whole process should be
> easier
>
> hth,
>
> Marin
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-admin@postgresql.org
Cc: jllachan@nsd.ca, marin.dimitrov@sirma.bg, jjecelin@yahoo.com
Subject: Re: indexes separate from data
In-Reply-To: <3CAB5909.F73F001A@nsd.ca>
References: <20020402222709.35512.qmail@web12802.mail.yahoo.com> <013201c1dae4$3cd5fca0$9b0e32d4@sirma.bg> <3CAB5909.F73F001A@nsd.ca>
* 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