Received: from beamish.nsd.ca (unknown [205.150.156.194]) by postgresql.org (Postfix) with ESMTP id 9E20147616F for ; Wed, 3 Apr 2002 14:27:32 -0500 (EST) Received: (from smap@localhost) by beamish.nsd.ca (8.9.3/8.9.3) id OAA08041; Wed, 3 Apr 2002 14:27:17 -0500 X-Authentication-Warning: beamish.nsd.ca: smap set sender to using -f Received: from reddog.nsd.ca(192.168.101.30) by beamish.nsd.ca via smap (V2.1/2.1+anti-relay+anti-spam) id xma008039; Wed, 3 Apr 02 14:27:13 -0500 Received: from nsd.ca (jllachan-linux.nsd.ca [192.168.101.148]) by reddog.nsd.ca (8.8.7/8.8.7) with ESMTP id OAA03269; Wed, 3 Apr 2002 14:32:33 -0500 Message-ID: <3CAB5909.F73F001A@nsd.ca> Date: Wed, 03 Apr 2002 14:33:29 -0500 From: Jean-Luc Lachance X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-31 i686) X-Accept-Language: en MIME-Version: 1.0 To: Marin Dimitrov Cc: Judy Jecelin , pgsql-admin@postgresql.org Subject: Re: indexes separate from data References: <20020402222709.35512.qmail@web12802.mail.yahoo.com> <013201c1dae4$3cd5fca0$9b0e32d4@sirma.bg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/37 X-Sequence-Number: 3926 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