Re: Errands around AllocateDir()
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-12-05T01:34:00Z
Lists: pgsql-hackers
On Tue, Dec 5, 2017 at 4:11 AM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote: > Tom Lane wrote: >> Yeah, agreed. The only thing I'm concerned about back-patching is >> the places where a wrong errno might be reported. > > If we're currently reporting "could not open dir: Success" then > backpatching such a fix is definitely an improvement. OTOH if currently > we have opendir() trying to report a failure, then LWLockRelease replace > the errno because something completely unrelated also failed, having the > message report exactly the opendir() failure rather than the lwlock > failure is surely also an improvement. Note I am +/-0 with exposing ReadDirExtended in back-branches, because there is no use for it yet there. Only fixing the actual bugs with errno is of course fine for me if my initial message was not clear for back-branches. -- Michael
Commits
-
Clean up assorted messiness around AllocateDir() usage.
- 2069e6faa0f7 11.0 landed
- eccb786f471b 9.5.11 landed
- 5eefe7452ed0 9.3.21 landed
- 543d8c2f5d4c 9.6.7 landed
- 2a11b188e8ab 10.2 landed
- 225501cf754f 9.4.16 landed