Simple query working for years, then suddenly very slow Simple query working for years, then suddenly very slow postgresql postgresql