| От | Tom Lane |
|---|---|
| Тема | Re: xmlserialize bug - extra empty row at the end |
| Дата | |
| Msg-id | 3837658.1682261289@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: xmlserialize bug - extra empty row at the end (Jim Jones <jim.jones@uni-muenster.de>) |
| Ответы |
Re: xmlserialize bug - extra empty row at the end
|
| Список | pgsql-hackers |
Jim Jones <jim.jones@uni-muenster.de> writes:
> On 23.04.23 07:31, Pavel Stehule wrote:
>> Looks so there is an extra empty row.
> Good catch! It looks like it comes directly from libxml2.
Is it really a bug? If libxml2 itself is putting in that newline,
I'm not sure we should take it on ourselves to strip it.
> I'll do some digging to see if there is a good way to get rid of this
> newline or if we need to chose a different dump function.
If we do want to strip it, I'd just add a couple lines of code
to delete any trailing newlines at the end of the process.
Compare, eg, pchomp().
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера