From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: psql possible TODO |
Date: | 2006-12-05 22:42:31 |
Message-ID: | 20061205224231.GE18593@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
> > control-R isn't real useful for 17 queries that are exactly the same
> > except for 3 different join clauses. It also isn't useful when you don't
> > know exactly what query you are looking for.
>
> ... but, somehow, you know exactly what command number it has?
Well, presumably \s would give you the numbers. "history" does on bash anyway.
I use it on bash all the time: I do "history | grep something" and then
!<number of command I want>.
I don't think we can do the "| grep" part, but it's useful anyway.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-12-05 22:42:37 | Re: Source directory |
Previous Message | Tom Lane | 2006-12-05 22:34:58 | Re: psql possible TODO |