run sql file from command line postgres code example Example: psql execute sql file db=> \i my_script.sql