Thread: pgsql: Back-port changes of Jan 16 and 17 to "revoke" pending fsync

pgsql: Back-port changes of Jan 16 and 17 to "revoke" pending fsync

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Back-port changes of Jan 16 and 17 to "revoke" pending fsync requests during
DROP TABLE and DROP DATABASE.  Should prevent unexpected "permission denied"
failures on Windows, and is cleaner on other platforms too since we no longer
have to take it on faith that ENOENT is okay during an fsync attempt.

Patched as far back as 8.1; per recent discussion I think we are not going
to worry about Windows-specific issues in 8.0 anymore.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        dbcommands.c (r1.173.2.1 -> r1.173.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c.diff?r1=1.173.2.1&r2=1.173.2.2)
    pgsql/src/backend/postmaster:
        bgwriter.c (r1.21.2.1 -> r1.21.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/bgwriter.c.diff?r1=1.21.2.1&r2=1.21.2.2)
    pgsql/src/backend/storage/smgr:
        md.c (r1.118.2.1 -> r1.118.2.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/smgr/md.c.diff?r1=1.118.2.1&r2=1.118.2.2)
    pgsql/src/include/storage:
        smgr.h (r1.53 -> r1.53.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/smgr.h.diff?r1=1.53&r2=1.53.2.1)

Re: pgsql: Back-port changes of Jan 16 and 17 to "revoke" pending fsync

From
Tom Lane
Date:
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> Could you please point me the discussion why we do not care 8.0
> regarding Windows specific issues? I could not find it...

It's not a completely done deal, but the folks listening in this
afternoon seemed to agree:
http://archives.postgresql.org/pgsql-general/2007-01/msg01614.php

            regards, tom lane