Re: SQL Buffer question

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "<No Name>" <bobmarley4u2c(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL Buffer question
Date: 2001-01-24 21:07:51
Message-ID: 200101242107.f0OL7pF12256@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"<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(dot)Elphick(at)lfix(dot)co(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-01-24 21:09:44 Re: Re: backend closing connections while executing...
Previous Message Radoslaw Stachowiak 2001-01-24 21:00:59 strange row count?