Say I have the files:
file1.sql file2.sql file3.sql
I need all three files to be executed in a single transaction. I\'m looking for a bash
You can also use the -1 or --single-transaction option to execute all your scripts in a transaction:
-1
--single-transaction
cat file*.sql | psql -1