Re: print statements? - Mailing list pgsql-novice

From Tom Lane
Subject Re: print statements?
Date
Msg-id 14355.1166681898@sss.pgh.pa.us
Whole thread Raw
In response to Re: print statements?  (Frank Bax <fbax@sympatico.ca>)
List pgsql-novice
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

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Getting a count from an update
Next
From: uldis
Date:
Subject: update order