When I do the following:
# psql template1
Connection to database 'template1' failed.
pqReadData() -- backend closed the channel unexpectedly.
'pqreaddata()' This probably means the backend terminated abnormally
before or while processing the request.