Source several files at once with psql
Your script could look like this:
BEGIN;
\i file1.sql
\i file2.sql
COMMIT;
Or you could do something like this:
cat file1.sql file2.sql | psql -1 -f -
Your script could look like this:
BEGIN;
\i file1.sql
\i file2.sql
COMMIT;
Or you could do something like this:
cat file1.sql file2.sql | psql -1 -f -