Re: Problems with whitespace-ignoring diff options

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with whitespace-ignoring diff options
Дата
Msg-id 22315.1067662317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problems with whitespace-ignoring diff options  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Problems with whitespace-ignoring diff options
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> It appears we must not use the options for determining whether the test
> failed, only for creating the diff output.  Or does anyone have a better
> idea?

AFAIK, there is no reason to ignore whitespace in determining whether a
test succeeded.  However, if a test fails, it is quite likely that a
whitespace-sensitive diff will produce many lines of uninteresting diff,
because of psql's habit of justifying column output --- any difference
in the data value length where the actual difference occurs would impact
all the rest of the query output, even though it's really "the same".

So if you can implement the above behavior easily, go for it.

Keep in mind though that a reported failure accompanied by *no* visible
diff would be highly annoying ;-).  Can we arrange to produce a
whitespace-sensitive diff output if the whitespace-insensitive kind
shows nothing?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Call for port reports
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Vacuum thoughts