conn = new NpgsqlConnection("Server=myserver;
User Id=postgres;
Password=somepw;
Database=somedb;
Pooling=false;
Timeout=300;
CommandTimeout=300");
I added the CommandTimeout
property to my connection string and it seems to be working now. Weird exception for a timeout error…