pg store_file fix