dbTalk Databases Forums  

Re: Tables in one disk and indexes in another ??

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Re: Tables in one disk and indexes in another ?? in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gaetano Mendola
 
Posts: n/a

Default Re: Tables in one disk and indexes in another ?? - 08-06-2004 , 01:14 PM






Gastón Simone wrote:

Quote:
I have unly one database and two disks. In order to use all my hardware
resources I want to store (for example) the tables in one of the disks and
the indexes in the other one. How can I do that?
Using the tablespace feature in the future 8.0 version or right now
with help of symlink. However a suggest you to put in the other disk
just the WAL: directory data/pg_xlog



Regards
Gaetano Mendola










Reply With Quote
  #2  
Old   
Scott Marlowe
 
Posts: n/a

Default Re: Tables in one disk and indexes in another ?? - 08-06-2004 , 01:34 PM






On Fri, 2004-08-06 at 11:51, Gastón Simone wrote:
Quote:
I have unly one database and two disks. In order to use all my hardware
resources I want to store (for example) the tables in one of the disks and
the indexes in the other one. How can I do that?
Right now, you have three possible choices:

1: Move to RAID-1, or 1 on 0, or 0 on 1, which will automatically
spread everything over multiple disks for you, and give great
performance for things like report databases. Still has good write
performance. Caching RAID controllers can give a big wrote boost with
battery backed cache. Pros: Stable and reliable data storage. Cons:
Costs the most.

2: Identify which files are which in the data store. Shut down the
postmaster. Move the files by hand and soft link them back to the data
store. Restart Server. Repeat every time you drop / create the index
or reindex.

3: Start testing 8.0 beta and wait for it to get "good enough" for your
production environment. 8.0 will support table spaces, which directly
addresses your problem.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.