how to run postgresql script from command line code example Example: psql execute sql file db=> \i my_script.sql