From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Hadley Willan <hadley(dot)willan(at)deeperdesign(dot)co(dot)nz> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgresql General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Simple question about messages |
Date: | 2003-04-30 03:28:16 |
Message-ID: | 20030430032816.GA24494@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)willan(at)deeperdesign(dot)co(dot)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(dot)willan(at)deeperdesign(dot)co(dot)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(at)postgresql(dot)org
--
Martijn van Oosterhout <kleptog(at)svana(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2003-04-30 03:48:30 | Re: Creating a functional index on a cast? |
Previous Message | Ron Mayer | 2003-04-30 01:33:06 | Re: dump/restore to 7.4devel giving "[archiver (db)] error returned by PQputline" |