Re: Fix race condition in size functions - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Fix race condition in size functions
Date
Msg-id 200703201639.l2KGdEH25070@momjian.us
Whole thread Raw
In response to Fix race condition in size functions  (Michael Fuhr <mike@fuhr.org>)
List pgsql-patches
Patch applied by Alvaro.

---------------------------------------------------------------------------

Michael Fuhr wrote:
> 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, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Win32 shmem
Next
From: Bruce Momjian
Date:
Subject: Re: pgbench on mingw needs fflush