Re: Race condition in pg_database_size() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Race condition in pg_database_size()
Date
Msg-id 17038.1173547924@sss.pgh.pa.us
Whole thread Raw
In response to Race condition in pg_database_size()  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Race condition in pg_database_size()
List pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> I'm wondering if the code should check for ENOENT if stat() fails
> and either skip this entry silently under the assumption that the
> file had been deleted since the call to ReadDir(),

Probably.  Want to look through the rest of that module for similar
problems?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in VACUUM FULL ?
Next
From: Tom Lane
Date:
Subject: Re: what can be wrong? backport plpgpsm to 8.1