Thursday, June 14, 2012

psql - reverse search history

psql the postgresql command line client is usually compiled with libreadline support. As a result of this you can use some neat functionality such as reverse search by hitting ctl-r within the client.
report=#  
hit CTL-r
(reverse-i-search)`': 
start typing
(reverse-i-search)`sel':  select * from report.audit where 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Web Statistics