title: terminate called after throwing an instance of 'pqxx::broken_connection'
body: <p>When I create an array of connections to psql database using pqxx, connections create successfully and they are in the array. But when I'm going to use one connection it gives me the following error. The way i created the array is also mentioned below. Can anyone tell me the reason for this.</p>
  
  <pre><code>for(int i=0;i&lt;10;i++)
      {
  
          connection c("dbname=test user=postgres password=abc123\
                       hostaddr=127.0.0.1 port=5432");
          conList[i]=&amp;c;
      }
  
    for (int j=0;j&lt;10;j++)
          {
              cout&lt;&lt;conList[j]-&gt;is_open()&lt;&lt;endl; // this returns 0
          }
  
  conList[0]-&gt;activate(); // at this point it gives the following error
  </code></pre>
  
  <p>terminate called after throwing an instance of 'pqxx::broken_connection'
    what():  Connection to database failed
  Aborted</p>