pgsql: Allow copydir() to be interrupted.

From: rhaas(at)postgresql(dot)org (Robert Haas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow copydir() to be interrupted.
Date: 2010-07-01 20:12:40
Message-ID: 20100701201240.1D8C37541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Allow copydir() to be interrupted.

This makes ALTER DATABASE .. SET TABLESPACE and CREATE DATABASE more
sensitive to interrupts. Backpatch to 8.4, where ALTER DATABASE .. SET
TABLESPACE was introduced. We could go back further, but in the absence
of complaints about the CREATE DATABASE case it doesn't seem worth it.

Guillaume Lelarge, with a small correction by me.

Modified Files:
--------------
pgsql/src/port:
copydir.c (r1.36 -> r1.37)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c?r1=1.36&r2=1.37)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-07-01 20:13:06 pgsql: Allow copydir() to be interrupted.
Previous Message Tom Lane 2010-07-01 15:52:52 pgsql: Get rid of some more stuff that duplicates c.h or port.h.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-07-01 20:13:32 Re: Cannot cancel the change of a tablespace
Previous Message Stephen J. Butler 2010-07-01 18:06:33 Re: log files and permissions