Re: psql \watch always ignores \pset null
От | Tom Lane |
---|---|
Тема | Re: psql \watch always ignores \pset null |
Дата | |
Msg-id | 9543.1416376444@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | psql \watch always ignores \pset null (Fujii Masao <masao.fujii@gmail.com>) |
Ответы |
Re: psql \watch always ignores \pset null
|
Список | pgsql-hackers |
Fujii Masao <masao.fujii@gmail.com> writes: > Hi, >> /* >> * Set up rendering options, in particular, disable the pager, because >> * nobody wants to be prompted while watching the output of 'watch'. >> */ >> myopt.nullPrint = NULL; >> myopt.topt.pager = 0; > I found psql's \watch command always ignores \pset null setting. > The above source code comment explains why it does, > but I'd like to see the specified string for null value even in \watch's > output, in order to distinguish null and an empty value. Thought? > Is there any reason why \watch must ignore \pset null setting? Hmmm ... the comment offers a reasonable argument for forcing pager = 0, but I agree the nullPrint change is not adequately explained. Will, do you remember why you did that? regards, tom lane
В списке pgsql-hackers по дате отправления: