Apparently my postgre database had a sever transaction error and a whole table is not accessable any more.