how to run an sql file while inside psql code example Example: psql execute sql file db=> \i my_script.sql