title: Postgres: error connecting to server "An operation was attempted on something that is not a socket."
body: <p>I'm using Windows, trying to get my database working so I can create a superuser on my localhost.</p>
  
  <p>I successfully installed Postgres 9.2.1, but when I try to connect to the server I get:</p>
  
  <pre><code>Error connecting to the server: server closed the connection unexpectedly
  This probably means the server terminated abnormally before or while processing the request.
  </code></pre>
  
  <p>With this in the error log:</p>
  
  <pre><code>PDT LOG:  incomplete startup packet
  PDT WARNING:  pgstat wait timeout
  LOG:  could not receive data from client: An operation was attempted on something that is not a socket.
  </code></pre>
  
  <p>I completely uninstalled my antivirus and made sure Windows Firewall is turned off.</p>
  
  <p>My server properties are default and postgresql.conf matches them:</p>
  
  <pre><code>Hostname: localhost
  Port: 5432
  </code></pre>
  
  <p>I am stumped how to debug this.</p>