Re: rmtree cleanup - Mailing list pgsql-patches

From Tom Lane
Subject Re: rmtree cleanup
Date
Msg-id 7462.1099001444@sss.pgh.pa.us
Whole thread Raw
In response to rmtree cleanup  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: rmtree cleanup
List pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> The attached patch cleans up src/port/dirmod.c::rmtree() a bit. It moves
> the filename finding portion into its own function, and in that function
> only scans the directory once instead of twice.

Applied, along with some further hacking to reduce the #ifdef clutter
by providing palloc substitute routines.  I checked it still works on
Unix, would you check I didn't break the Windows cases?

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: sign parsing (was: Re: [HACKERS] to_char/to_number loses sign)
Next
From: Tom Lane
Date:
Subject: Re: dblink crash fix