psql -d template_postgis2 -f /usr/share/postgresql/9.1/contrib/postgis-2.1/postgis.sql
returns a list of errors that is too long to be displayed by scrolling up to the beginning of the error.
I tried the same command with "
| more" and "
| less" added up at the end of the command but it does not display the message page by page as it should.
I also tried to put the output in a file with "
> file.txt" but I do not get in this new file what is displayed on the screen!!
I don't understand why. I guess i can't do this with a psql command?? Is there any other way to get all the error message?
Thanks for your help!