execute postgres sql file from shell scripting code example Example: psql execute sql file db=> \i my_script.sql