Re: patch to add \watch to psql

From: "Dickson S(dot) Guedes" <listas(at)guedesoft(dot)net>
To: Daniel Farina <daniel(at)heroku(dot)com>
Cc: Will Leinweber <will(at)heroku(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>
Subject: Re: patch to add \watch to psql
Date: 2013-01-20 18:11:50
Message-ID: CAHHcrerot15qe5b+Vt_e31_rOgsC4aCDaEiMno3Ya-v=fvLh5g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2013/1/17 Daniel Farina <daniel(at)heroku(dot)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(at)guedesoft(dot)net - skype: guediz
http://github.com/guedes - http://guedesoft.net
http://www.postgresql.org.br

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-01-20 18:37:21 Re: proposal: fix corner use case of variadic fuctions usage
Previous Message Dean Rasheed 2013-01-20 17:29:55 Re: Thinking about WITH CHECK OPTION for views