You can change the behavior of psql in other ways. You normally start
psql from the command line as psql test. However, you can
add extra arguments between psql and the database name to modify psql
behavior. For example, psql -f file test will read commands from file,
rather than from your keyboard. There is a summary of the options in table .
Consult the psql manual page for more detailed information.