On Sat, Mar 10, 2007 at 12:32:04PM -0500, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> 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?
I think only db_dir_size() and calculate_tablespace_size() are affected by this particular failure (ReadDir followed by stat). I'll submit a patch -- any preferences for silent continuation vs. continuation with a notice or warning? -- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate