pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
indexes separate from data
4+ messages / 3 participants
[nested] [flat]

* indexes separate from data
@ 2002-04-02 22:27  Judy Jecelin <jjecelin@yahoo.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Judy Jecelin @ 2002-04-02 22:27 UTC (permalink / raw)
  To: pgsql-admin


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?

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: indexes separate from data
@ 2002-04-03 07:50  Marin Dimitrov <marin.dimitrov@sirma.bg>
  parent: Judy Jecelin <jjecelin@yahoo.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Marin Dimitrov @ 2002-04-03 07:50 UTC (permalink / raw)
  To: Judy Jecelin <jjecelin@yahoo.com>; pgsql-admin


----- 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

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: indexes separate from data
@ 2002-04-03 19:33  Jean-Luc Lachance <jllachan@nsd.ca>
  parent: Marin Dimitrov <marin.dimitrov@sirma.bg>
  0 siblings, 1 reply; 4+ messages in thread

From: Jean-Luc Lachance @ 2002-04-03 19:33 UTC (permalink / raw)
  To: Marin Dimitrov <marin.dimitrov@sirma.bg>; +Cc: Judy Jecelin <jjecelin@yahoo.com>; pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: indexes separate from data
@ 2002-04-04 07:25  Marin Dimitrov <marin.dimitrov@sirma.bg>
  parent: Jean-Luc Lachance <jllachan@nsd.ca>
  0 siblings, 0 replies; 4+ messages in thread

From: Marin Dimitrov @ 2002-04-04 07:25 UTC (permalink / raw)
  To: Jean-Luc Lachance <jllachan@nsd.ca>; +Cc: pgsql-admin


----- Original Message ----- 
From: "Jean-Luc Lachance" 

> Interesting...  What happens when you drop and recreate the index???
> 

repeat the whole procedure again


hth,

    Marin


----
"...what you brought from your past, is of no use in your present. When 
you must choose a new path, do not bring old experiences with you. 
Those who strike out afresh, but who attempt to retain a little of the 
old life, end up torn apart by their own memories. "






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-04-04 07:25 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02 22:27 indexes separate from data Judy Jecelin <jjecelin@yahoo.com>
2002-04-03 07:50 ` Marin Dimitrov <marin.dimitrov@sirma.bg>
2002-04-03 19:33   ` Jean-Luc Lachance <jllachan@nsd.ca>
2002-04-04 07:25     ` Marin Dimitrov <marin.dimitrov@sirma.bg>

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