On 12/12/2018 15:58, Andreas Karlsson wrote:
> But when taking a look at your patch I got a segfault when running
> initdb. See the stack trace below. My compiler is "gcc (Debian 8.2.0-9)
> 8.2.0" and the locale when running initdb is glibc's "en_US.utf8".
Fixed in the attached updated patch.
(Apparently passing a NULL locale to strcoll_l() doesn't crash as
readily on macOS as on glibc.)
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services