X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7BBE1D1B46C; Thu, 25 Dec 2003 00:29:27 +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 08335-05; Wed, 24 Dec 2003 20:28:41 -0400 (AST) Received: from hosting.commandprompt.com (138.commandprompt.com [207.173.200.138]) by svr1.postgresql.org (Postfix) with ESMTP id A4F98D1B4C1; Wed, 24 Dec 2003 20:28:37 -0400 (AST) Received: from commandprompt.com (clbb-109.saw.net [64.146.135.109]) (authenticated) by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id hBP0Sag26784; Wed, 24 Dec 2003 16:28:36 -0800 Message-ID: <3FEA2F4A.9000503@commandprompt.com> Date: Wed, 24 Dec 2003 16:28:58 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030917 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Somasekhar Bangalore Cc: Jaime Casanova , pgsql-general@postgresql.org, pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org, K Harikumar , Anoop G , Sanjay Rathod Subject: Re: [GENERAL][HACKERS]data fragmentation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/307 X-Sequence-Number: 11813 Hello, An quicker option would be to use rsync (on a stopped database of course). You can rsync to a new directory (off the filesystem) and then reformat the data filesystem and move it back. J Somasekhar Bangalore wrote: >Hi, > >I too had the same problem; There was one query which used to take a very long time. What I did was, I took a backup of the whole database. Reinstalled postgres on a different mount point and restored the data back into the new database. Now my queries are running faster. Try it. All the very best. > >Somasekhar > > >-----Original Message----- >From: Jaime Casanova [mailto:el_vigia_ec@hotmail.com] >Sent: Friday, December 12, 2003 3:07 AM >To: pgsql-general@postgresql.org; pgsql-hackers@postgresql.org; pgsql-admin@postgresql.org >Subject: [GENERAL][ADMIN][HACKERS]data fragmentation > >Hi, > >i have a theorical question. i was thought that data fragmentation can cause >a >loss of performance when retrieving data from a database. Some DBMS solved >this >with dbspaces, but postgresql doesn't support this concept. >so, pgsql databases tend to suffer from data fragmentation? >if yes, what is the solution you recommend? > >also i was thought that even when DBMS support dbspaces DELETEing records >may >cause data fragmentation anyway. >so, can i think of DELETE statement as a double-edged sword? >it is indifferent in pgsql - it doesn't support dbspaces anyway? > >thanks in advance, >Jaime Casanova (el_vigia) > >_________________________________________________________________ >The new MSN 8: smart spam protection and 2 months FREE* >http://join.msn.com/?page=features/junkmail > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC - S/JDBC Postgresql support, programming, shared hosting and dedicated hosting. +1-503-222-2783 - jd@commandprompt.com - http://www.commandprompt.com