pgsql: Fix a race condition that caused pg_database_size() and

From: alvherre(at)postgresql(dot)org (Alvaro Herrera)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a race condition that caused pg_database_size() and
Date: 2007-03-11 05:22:00
Message-ID: 20070311052200.D80429FB4D6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix a race condition that caused pg_database_size() and pg_tablespace_size()
to fail if an object was removed between calls to ReadDir() and stat().
Per discussion in pgsql-hackers.

http://archives.postgresql.org/pgsql-hackers/2007-03/msg00671.php

Bug report and patch by Michael Fuhr.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
dbsize.c (r1.11 -> r1.12)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/dbsize.c.diff?r1=1.11&r2=1.12)

Browse pgsql-committers by date

  From Date Subject
Next Message User Eggyknap 2007-03-11 05:55:53 pgsnmpd - pgsnmpd: * Comment out bunches of the old MIB in pgsnmpd.c.
Previous Message User Eggyknap 2007-03-10 20:25:13 pgsnmpd - pgsnmpd: Remove rdbmsDbInfoTable_data_set.[ch], as they're