X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A5839D1C995 for ; Fri, 9 Apr 2004 12:11:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 26977-10 for ; Fri, 9 Apr 2004 12:11:37 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 97139D1D075 for ; Fri, 9 Apr 2004 12:11:34 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id i39FAY1p028114; Fri, 9 Apr 2004 09:10:35 -0600 (MDT) Date: Fri, 9 Apr 2004 09:10:17 -0600 (MDT) From: "scott.marlowe" To: hal Cc: Subject: Re: Multiple disks In-Reply-To: <36A36A88-89A4-11D8-8FD0-000A959670A0@cc.usu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-IHS-MailScanner-Envelope-Sender: scott.marlowe@ihs.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/181 X-Sequence-Number: 13154 On Thu, 8 Apr 2004, hal wrote: > What is the best/simplest way to split: > a database > multiple databases > a table > multiple tables > across more than one disk drive? > > I know that this has come up before but I can't find > any info. A pointer to a HOWTO or other info would > be wonderful. The current king of putting postgresql on multiple platters and getting best overall performance is a battery backed caching raid controller run one or more many disk RAID-5 arrays. The more disks, the better up to a dozen or two. The red headed step child is the alternate location stuff, discussed in the docs here: http://www.postgresql.org/docs/7.4/static/manage-ag-alternate-locs.html which will allow you to put individual databases in different locations. It's a hackish kludge that should be replaced by the upcoming tablespaces patches. I'm not sure if those will be done by 7.5 release or not. The next way is to individually link thinks like indexes onto other volumes. The procedure is basically, create the index, figure out which file in $PGDATA/base/oidofyourdbhere is the index, shut down postgresql, copy to file elsewhere, softlink it, restart apache. This setup will not survive reindexing or dropping / recreating the index.