Unix Technical Forum

Fix race condition in size functions

This is a discussion on Fix race condition in size functions within the Pgsql Patches forums, part of the PostgreSQL category; --> Fix a race condition that caused pg_database_size() and pg_tablespace_size() to fail if an object was removed between calls to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 10:41 AM
Michael Fuhr
 
Posts: n/a
Default Fix race condition in size functions

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...3/msg00671.php

--
Michael Fuhr


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 10:43 AM
Bruce Momjian
 
Posts: n/a
Default Re: Fix race condition in size functions


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...3/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. +

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:46 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com