Thanks for the answer. The pg_dump is running on the same machine as the database. Is a VPS running centos. the script is this one: https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux im using the custom backups. -- View this message in context: http://postgresql.nabble.com/pg-dump-postgre-9-2-and-server-closed-the-connection-unexpectedly-tp5866825p5866846.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general