psql possible TODO - Mailing list pgsql-hackers

From Joshua D. Drake
Subject psql possible TODO
Date
Msg-id 1165350347.31648.40.camel@localhost.localdomain
Whole thread Raw
Responses Re: psql possible TODO
List pgsql-hackers
Hello,

A reasonable simple feature we were thinking about sponsoring was an
addition to psql. Currently if you perform a \s within psql it gives
you the query buffer. My suggestion is that \s give us a execution
number, similar to bash. Thus at a psql prompt we could do:

foo=> !76

And it would execute whatever query was number 76. Secondly:

foo=> !!76

Would execute an explain on whatever query was 76. Lastly:

foo=> !@76

Would execute an explain analyze within a transaction and a rollback (so
we could do updates/deletes).

I am of course open to other thoughts but it certainly seems like a nice
shortcut.

Sincerely,

Joshua D. Drake


-- 
     === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997            http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: trappable warnings, dynamic change of minimal level for PG_RE_THROW
Next
From: Tom Lane
Date:
Subject: Re: psql possible TODO