Re: [GENERAL][HACKERS]data fragmentation

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Somasekhar Bangalore <sbangalore(at)zensutra(dot)com>
Cc: Jaime Casanova <el_vigia_ec(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org, K Harikumar <kharikumar(at)zensutra(dot)com>, Anoop G <ganoop(at)zensutra(dot)com>, Sanjay Rathod <srathod(at)zensutra(dot)com>
Subject: Re: [GENERAL][HACKERS]data fragmentation
Date: 2003-12-25 00:28:58
Message-ID: 3FEA2F4A.9000503@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-hackers

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(at)hotmail(dot)com]
>Sent: Friday, December 12, 2003 3:07 AM
>To: pgsql-general(at)postgresql(dot)org; pgsql-hackers(at)postgresql(dot)org; pgsql-admin(at)postgresql(dot)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(at)postgresql(dot)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(at)commandprompt(dot)com - http://www.commandprompt.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Oli Sennhauser 2003-12-26 13:47:32 UNIX File buffering disable?
Previous Message Bruno Wolff III 2003-12-24 04:06:38 Re: constaint addition to existing schema

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2003-12-25 00:33:36 Re: hardware requirements under Redhat
Previous Message Brian Hirt 2003-12-25 00:19:22 Re: [webmaster] Mirrors that don't suck.

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-25 03:44:13 Re: distinguish between all and "all" in pg_hba.conf
Previous Message Michael Glaesemann 2003-12-24 19:23:52 Distributed keys / Inheritance