is there a way to prevent (i.e. kill) runaway queries?
i.e. set a maximum timeout after which a query will be terminated?
I assume that there is no way of knowing when the target data source (I am talking specifically about
postgres is under heavy load and terminate the corresponding query causing the load?)