protected static NpgsqlCommand CreateSleepCommand(NpgsqlConnection conn, int seconds) { return new NpgsqlCommand(string.Format("SELECT pg_sleep({0}){1}", seconds, conn.PostgreSqlVersion < new Version(9, 1, 0) ? "::TEXT" : ""), conn); }