Santiago DIEZ <santiago.diez@caoba.fr> writes:
> I'm trying to execute postgresql inside a chroot environment.
> initdb runs OK
> pg_ctl runs OK and server can be queried.
> But, the logs show :
> 2017-03-21 22:34:03 CET LOG: could not receive test message on socket for
> statistics collector: Connection refused
> 2017-03-21 22:34:03 CET LOG: disabling statistics collector for lack of
> working socket
Apparently there's some aspect of your chroot setup that breaks TCP
connections to "localhost". You need to fix that ...
regards, tom lane