Fix race condition in size functions

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: Fix race condition in size functions
Date: 2007-03-11 04:44:17
Message-ID: 20070311044417.GA94914@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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

--
Michael Fuhr

Attachment Content-Type Size
dbsize.patch text/x-diff 1.7 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Pavel Stehule 2007-03-11 05:27:29 Re: simply custom variables protection
Previous Message Tom Lane 2007-03-11 02:34:34 Re: WIP patch for plan invalidation