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 06:44:11
Message-ID: 20070311064411.CAD3B9FB773@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.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
dbsize.c (r1.9 -> r1.9.2.1)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/dbsize.c.diff?r1=1.9&r2=1.9.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message User Okbob 2007-03-11 07:10:43 plpsm - plpgpsm: I had to revert for 8.1 Tom Lane's nested estate patch
Previous Message Alvaro Herrera 2007-03-11 06:43:23 pgsql: Fix a race condition that caused pg_database_size() and