Andrew Dunstan <andrew(at)dunslane(dot)net> writes:> darnit!> patch attached.
Applied with correction (you got the return-value check backwards)and further work to deal reasonably with error conditions occurringin check_data_dir.
regards, tom lane