Daniel Gustafsson <dan...@yesql.se> writes: > This is indeed buggy and need to take the length into account, as per the > attached. This only happens when in the undocumented regression test debug > mode which may be why it's gone unnoticed.
Seeing that this code is exercised thousands of times a day in the regression tests and has had a failure rate of exactly zero (and yes, the tests do check the output), there must be some reason why it's okay. regards, tom lane