Changed postgres repo install to use tempfile