Fix a race condition that caused pg_database_size() and pg_tablespace_size()

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 8a7b38617a5e1390dc993faf3c86c82d2202de15
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2007-03-11T06:44:11Z
Releases: 8.2.4
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.

Files

PathChange+/−
src/backend/utils/adt/dbsize.c modified +17 −8