John Beaver wrote:- Trying the same constant a second time gave an instantaneous result, I'm guessing because of query/result caching.AFAIK no query/result caching is in place in postgres, what you are experiencing is OS disk/memory caching. Regards Gaetano Mendola