PostgreSQL lost connection during massive index operation? What exactly happened?
Checking sudo vim /var/log/apt/term.log, I confirmed that this was caused by a PostgreSQL update hidden in the apt-get upgrade that another user had executed on the system.