On linux, I am loading a file into a database using psql and the input redirection operator. I would like to delete the file in order to free up some disk space. Will that interfere with the load?
psql mydatabase < myfile.sql &
rm myfile.sql
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The file won’t actually be deleted from the disk until
psqlhas finished. It’ll be deleted from the directory so it won’t appear, but the file will remain on disk (using up space), until the operation has completed.