Re: patch to add \watch to psql - Mailing list pgsql-hackers

From Dickson S. Guedes
Subject Re: patch to add \watch to psql
Date
Msg-id CAHHcrerot15qe5b+Vt_e31_rOgsC4aCDaEiMno3Ya-v=fvLh5g@mail.gmail.com
Whole thread Raw
In response to Re: patch to add \watch to psql  (Daniel Farina <daniel@heroku.com>)
Responses Re: patch to add \watch to psql
List pgsql-hackers
2013/1/17 Daniel Farina <daniel@heroku.com>:
> I realized while making my adjustments that I pointlessly grew some input
> checking in the inner loop.  I just hoisted it out in this version.

Since psql uses libreadline, what do you think about to call
rl_clear_screen() inside that "while (true)" loop? Obviously we should
test #if we have readline enabled to use it, but when we have it a
nice output will bring to us.

BTW, I don't know how this will behaves on OSX or Windows.

[]s
-- 
Dickson S. Guedes
mail/xmpp: guedes@guedesoft.net - skype: guediz
http://github.com/guedes - http://guedesoft.net
http://www.postgresql.org.br



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Thinking about WITH CHECK OPTION for views
Next
From: Robert Haas
Date:
Subject: Re: proposal: fix corner use case of variadic fuctions usage