From: | heikki(at)postgresql(dot)org (Heikki Linnakangas) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Force a checkpoint in CREATE DATABASE before starting to copy the |
Date: | 2008-10-09 10:34:06 |
Message-ID: | 20081009103406.D69C57545A4@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Force a checkpoint in CREATE DATABASE before starting to copy the files,
to process any pending unlinks for the source database.
Before, if you dropped a relation in the template database just before
CREATE DATABASE, and a checkpoint happened during copydir(), the checkpoint
might delete a file that we're just about to copy, causing lstat() in
copydir() to fail with ENOENT.
Backpatch to 8.3, where the pending unlinks were introduced.
Per report by Matthew Wakeling and analysis by Tom Lane.
Modified Files:
--------------
pgsql/src/backend/commands:
dbcommands.c (r1.213 -> r1.214)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c?r1=1.213&r2=1.214)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2008-10-09 10:34:22 | pgsql: Force a checkpoint in CREATE DATABASE before starting to copy the |
Previous Message | User Okbob | 2008-10-08 09:15:36 | orafce - orafce: Change message buffer size and item size from size_t to |