]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix a race condition that caused pg_database_size() and pg_tablespace_size()
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 11 Mar 2007 06:43:23 +0000 (06:43 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 11 Mar 2007 06:43:23 +0000 (06:43 +0000)
commit3cda014bf435c616bb78de45b46b199add79c409
tree0361d404062b617578fdd79bddb0c0cb254c0ed8
parent15c31ce09ecc691d949763437f3f975200e73224
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.
src/backend/utils/adt/dbsize.c