Even faster for postgresql