Forum OpenACS Q&A: Re: Problem connecting to postgresql via stunnel (user can, Aolserver can't)

Try
ns_param datasource 127.0.0.1:55432:acsdb

If I remember right aolserver or the driver makes the presumption that localhost = unix domain socket so using 127.0.0.1 tells it to look for a tcp socket.