Re: Simple question about messages - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Simple question about messages
Date
Msg-id 20030430032816.GA24494@svana.org
Whole thread Raw
In response to Re: Simple question about messages  (Hadley Willan <hadley.willan@deeperdesign.co.nz>)
List pgsql-general
On Wed, Apr 30, 2003 at 11:31:56AM +1200, Hadley Willan wrote:
> Hmm, no luck. Seems that the echo command is routed out to the output
> file. Which is kinda expected. I was kinda hoping that it would be like
> the Create Table notices which appear in the terminal.

Something I have had luck with sometimes (though sometimes it confuses psql)
is to do:

\!echo hello >&2

Sometimes psql tries to treat it as SQL though. Maybe it's worth a try?

> On Wed, 2003-04-30 at 10:52, Tom Lane wrote:
> > Hadley Willan <hadley.willan@deeperdesign.co.nz> writes:
> > > However, may question is that how do I raise custom notices like 'At
> > > point x' or something.
> >
> > psql's \echo command might fit the bill.
> >
> >             regards, tom lane
> --
> Hadley Willan > Systems Development > Deeper Design Limited. +64(7)377-3328
> hadley.willan@deeperdesign.co.nz > www.deeperdesign.com > +64(21)-28-41-463
> Level 1, 4 Tamamutu St, PO Box 90, TAUPO 2730, New Zealand.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
>   - Samuel P. Huntington

Attachment

pgsql-general by date:

Previous
From: Benjamin Scherrey
Date:
Subject: Re: Bug(?) with cursors using aggregate functions.
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Creating a functional index on a cast?