| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-performance(at)postgresql(dot)org |
| Cc: | Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org, Michael Clemmons <glassresistor(at)gmail(dot)com>, Hannu Krosing <hannu(at)2ndquadrant(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
| Subject: | Re: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb) |
| Date: | 2010-01-20 04:01:55 |
| Message-ID: | 201001200501.55902.andres@anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-performance |
Hi Greg,
On Monday 18 January 2010 17:35:59 Greg Stark wrote:
> 2) Why does the second pass to do the fsyncs read through fromdir to
> find all the filenames. I find that odd and counterintuitive. It would
> be much more natural to just loop through the files in the new
> directory. But I suppose it serves as an added paranoia check that the
> files are in fact still there and we're not fsyncing any files we
> didn't just copy. I think it should still work, we should have an
> exclusive lock on the template database so there really ought to be no
> differences between the directory trees.
If it weren't safe we would already have a big problem....
Andres
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2010-01-20 04:02:17 | Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb) |
| Previous Message | Andres Freund | 2010-01-20 03:47:47 | Re: Small locking bugs in hs |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2010-01-20 04:02:17 | Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb) |
| Previous Message | Craig Ringer | 2010-01-20 01:18:35 | Re: renice on an I/O bound box |