Frank Bax <fbax@sympatico.ca> writes:
> At 08:35 AM 12/19/06, tlm wrote:
>> Hi. I have an automated script that essentially feeds a long sequence
>> of SQL statements to psql, as a single transaction. For debugging
>> purposes, I would like to insert the equivalent of print statements (to
>> write messages to stdout, stderr, or maybe some pre-specified log file) at
>> various points in this sequence. How is this done?
> select 'half way already?';
Also, there's a \echo command in psql that might help.
regards, tom lane