How to execute *.sql file using psql
Is this what you mean?
\i e:/myFolder/index.sql;
Following script worked for me,
psql -U postgres -d mydb -a -f "D:\index.sql" -- Absolute path to .sql file
-U, -a, -f
Is this what you mean?
\i e:/myFolder/index.sql;
Following script worked for me,
psql -U postgres -d mydb -a -f "D:\index.sql" -- Absolute path to .sql file
-U, -a, -f