From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Mark Kirkwood" <markir(at)paradise(dot)net(dot)nz> |
Cc: | "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PostgreSQL win32 fragmentation issue |
Date: | 2006-12-03 10:54:05 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCEA0FD97@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > A related point comes to mind, consider the single
> "tablespace" file
> > for
> > example: It may have no fragmentation from a *file*
> perspective, but
> > supposing you have several busy relations being inserted or updated
> > then pages (or groups of pages) for these could be "fragmented"
> > throughout the tablespace file.
>
> +1 ... what was said upthread sounds to me like those other databases
> are just hiding the fragmentation issue within their
> huge-files-you-can't-see-into. I would very much like to see
> some proof of performance problems before we worry about this.
Yes, they definitly do. That's why for exapmle SQLServer provides the
commands "DBCC CHECKCONTIG" and "DBCC INDEXDEFRAG". Along with comments
like this:
"DBCC SHOWCONTIG determines whether the table is heavily fragmented.
Table fragmentation occurs through the process of data modifications
(INSERT, UPDATE, and DELETE statements) made against the table. Because
these modifications are not ordinarily distributed equally among the
rows of the table, the fullness of each page can vary over time. For
queries that scan part or all of a table, such table fragmentation can
cause additional page reads. This hinders parallel scanning of data."
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Gurjeet Singh | 2006-12-03 11:09:55 | Facing a problem with SPI |
Previous Message | Gurjeet Singh | 2006-12-03 09:03:12 | Re: PostgreSQL win32 fragmentation issue |