How to execute *.sql file using psql on windows code example Example: psql execute sql file db=> \i my_script.sql