Re: TOAST performance (was Re: [GENERAL] Delete

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: TOAST performance (was Re: [GENERAL] Delete
Date: 2001-11-20 07:31:19
Message-ID: 3BFA06C7.6824B92@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Andrew McMillan wrote:
>
> On Tue, 2001-11-20 at 10:11, Hannu Krosing wrote:
> >
> > > Tom Lane wrote
> > >
> > >> I did some experimentation here and found a rather surprising
> > >> dependency: the time to delete a bunch of data is pretty much
> > >> directly proportional to the disk space it occupies. This says
> > >> that we're paying through the nose for having XLOG make copies
> > >> of about-to-be-modified pages.
> > >
> > Can't we somehow WAL only metadata and not the actual pages for
> > DELETEs - as delete is essentially (though currently not technically)
> > just metadata it should be a possible thing to do.
>
> Is it possible to do ordered writes, the way ext3 does?

I remember it being discussed on this list that you have very little
control over writing order if you operate above filesystem/cache level.

> http://www-106.ibm.com/developerworks/linux/library/l-fs7/

I guess that is the article that sparked the idea of journalling only
metadata for deletes (including the delete half of update)

Using the Journaling Block Device described there could actually be
a good (though currently not portable) solution if you run linux.

-------------
Hannu

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2001-11-20 08:25:53 postgresql-7.2b2 NetBSD/Alpha 1.5W passed
Previous Message Mike Castle 2001-11-20 07:17:44 Re: email time warps

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-11-20 08:45:31 Re: import/export of large objects on server-side
Previous Message Christopher Kings-Lynne 2001-11-20 05:39:24 Re: Previous email about missing pgsql-sql