"<No Name>" wrote:
>Assuming I already have a table in my database (test)...I want to show my
>teacher all the commands I use and also the results, how can I do that in
>PostgreSQL. I tried using \e filename, but I am having no luck.
Assuming you are using Unix, you can use script to capture all the output
on your terminal and store it in a file. If you are using another broken
excuse for an operating system, you may be out of luck...
$ man script
...
DESCRIPTION
Script makes a typescript of everything printed on your terminal. It is
useful for students who need a hardcopy record of an interactive session
as proof of an assignment, as the typescript file can be printed out lat
er with lpr(1).
...
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"If anyone has material possessions and sees his
brother in need but has no pity on him, how can the
love of God be in him?"
I John 3:17