Skip site navigation (1) Skip section navigation (2)

Re: BUG #5166: readdir() failure on Mac OS-X is HFS "feature"

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Stephen Tyler <stephen(at)stephen-tyler(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5166: readdir() failure on Mac OS-X is HFS "feature"
Date: 2009-11-05 13:32:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Stephen Tyler wrote:

> I have found readdir() calls in:
> src/port/dirent.c
> src/port/dirmod.c
> src/bin/initdb/initdb.c
> src/bin/pg_resetxlog/pg_resetxlog.c
> src/bin/psql/
> src/tools/msvc/
> src/tools/msvc/
> src/backend/storage/file/fd.c
> contrib/pg_standby/pg_standby.c
> I don't know which of the above depend on the "unspecified" readdir
> behaviour (beyond dirmod.c), and are thus prone to failure on Mac OS X.

Probably the most relevant one is in storage/file/fd.c, in AllocateDir,
which is used in a lot of places, some of which do delete files: for
example the one in RemoveOldXlogFiles probably explains the pg_xlog
failures, and SlruScanDirectory explains the pg_clog failures (along
with others).  I wouldn't be surprised if others like the ones in
RelationCacheInitFileRemove and RelationCacheInitFileRemoveInDir need
patching as well.

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

pgsql-bugs by date

Next:From: assaf lehrDate: 2009-11-05 14:21:24
Subject: Re: BUG #5165: Poor performance with Left-join where right side does not exist
Previous:From: tomasDate: 2009-11-05 12:49:00
Subject: Re: BUG #5168: cannot login to server

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group