> In the postgresql tutorial it is explained how to enter commands one by
> one, I was wondering whether it is possible to first put a series of
> commands in an ascii file and then read in that file with psql. Here are
> my questions:
> 1. What should be the default extension of such a file
I do not know of a standard. How about .sql ?
> 2. Which command in psql should I use to read in suc a file
\i commands.sql
Also, take a look at \? which will show you other goodies.