X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 93D3AD1DD2C for ; Tue, 17 Feb 2004 23:17:36 +0000 (GMT) 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 84824-08 for ; Tue, 17 Feb 2004 19:17:37 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 9BA45D1D3DC for ; Tue, 17 Feb 2004 19:17:34 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i1HNHY1Y070268 for ; Tue, 17 Feb 2004 23:17:34 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i1HN29CI068271 for pgsql-performance@postgresql.org; Tue, 17 Feb 2004 23:02:09 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.performance Subject: Re: Tables on multiple disk drives Date: Tue, 17 Feb 2004 17:31:11 -0500 Organization: cbbrowne Computing Inc Lines: 36 Message-ID: References: <1379274019.20040217155454@tokar.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:nAeZUywxeQFIylphoBEbN80NlPw= To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/200 X-Sequence-Number: 5724 lists2@tokar.ru (Konstantin Tokar) wrote: > Hi! > Does PostgreSQL allow to create tables and indices of a single > database on multiple disk drives with a purpose of increase > performance as Oracle database does? If a symbolic reference is the > only method then the next question is: how can it be determined what > file is referred to what table and index? It is possible to do this, albeit not trivially easily, by shutting down the database, moving the index to another filesystem, and using a symbolic link to connect it back in. The system table pg_class contains the relevant linkages. But it seems likely to me that using a smart RAID controller (e.g. - LSILogic MegaRAID) to link a whole lot of disks together to generate one enormous striped filesystem would be a more effective strategy, in the long run. Doing that, with a substantial array of disk drives, allows your disk subsystem to provide an analagous sort of performance increase without there being any need for a DBA to fiddle around with anything. If you have the DBA do the work, this means consuming some not-insubstantial amount of time for analysis as well as down-time for maintenance. And it will be necessary to have a somewhat-fragile "registry" of configuration information indicating what customizations were done. In contrast, throwing a smarter RAID controller at the problem costs only a few hundred dollars, and requires little or no analysis effort. And the RAID controller will affect _all_ cases where there could be I/O benefits from striping tables across multiple drives. -- If this was helpful, rate me http://cbbrowne.com/info/x.html The way to a man's heart is through the left ventricle.