title: How can setting timeout value of Npgsql?
body: <p>I using <code>CommandTimeout=5</code> to setting timeout, but it is not ok.</p>
  <p>This is my code:</p>
  <pre><code>Dim con As New NpgsqlConnection
          Dim cmd As New NpgsqlCommand
          Dim conStr As String
          Try
              Dim sql = &quot;Select * from dat_extract_text a join dat_replace_text b on a.tm_id=b.tm_id 
  join dat_base_text_dt c on c.tm_id=a.tm_id
  join dat_base_text_dt_font d on d.tm_id=c.tm_id
  limit 250000&quot;
              conStr = &quot;Server=192.168.1.10;Port=5434;UserId=testuser;Password=1234;Database=testdb;CommandTimeout=5;&quot;
              con.ConnectionString = conStr
              con.Open()
  
              cmd.Connection = con
              cmd.CommandText = sql
  
              Dim st = DateTime.Now
              Dim rs = cmd.ExecuteNonQuery
              Dim et = DateTime.Now
              Dim t = (et - st).TotalSeconds           
          Catch ex As Exception
          End Try
  </code></pre>
  <p>Time of my query is about 40s, but it not occur timeout.</p>
  <p>How can setting timeout value of Npgsql?</p>