Re: diff-/patch-functionality for text-type data inside PostgreSQL

Поиск
Список
Период
Сортировка
Искать
От
Markus Wollny
Тема
Re: diff-/patch-functionality for text-type data inside PostgreSQL
Дата
в 10:44:06
Msg-id
28011CD60FB1724DBA4442E38277F6260C9CA229@hermes.computec.de
Ответ на
Список
Дерево обсуждения
diff-/patch-functionality for text-type data inside PostgreSQL "Markus Wollny" <Markus.Wollny@computec.de>
Re: diff-/patch-functionality for text-type data inside PostgreSQL Martijn van Oosterhout <kleptog@svana.org>
Re: diff-/patch-functionality for text-type data insidePostgreSQL "Markus Wollny" <Markus.Wollny@computec.de>
Re: diff-/patch-functionality for text-type data inside PostgreSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: diff-/patch-functionality for text-type data inside PostgreSQL "Markus Wollny" <Markus.Wollny@computec.de>
Hi! 

> -----Ursprüngliche Nachricht-----
> Von: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
> Gesendet: Montag, 4. Mai 2009 15:04

> "Markus Wollny"  writes:
> > So far I have been playing around with PL/PerlU for diff/path 
> > functionality, using CPAN modules Text::Diff and Text::Patch, but 
> > haven't been too successful, as there seems to be some 
> issue with this 
> > mechanism if the text data doesn't contain newlines.
> 
> Almost all diff/patch functions operate line-by-line, so that 
> hardly seems surprising.

Not so much surprising, no, but I hadn't expected it to fail altogether on entries that just end after one line of text just because they lack a newline character - they are a one line text after all, so I assumed that the diff would produce a "replace this old line with the new one" type of instruction instead of producing something that patch doesn't seem to be able to process at all.

Kind regards

   Markus


Computec Media AG
Sitz der Gesellschaft und Registergericht: Fürth (HRB 8818)
Vorstandsmitglieder: Albrecht Hengstenberg (Vorsitzender) und Rainer Rosenbusch
Vorsitzender des Aufsichtsrates: Jürg Marquard 
Umsatzsteuer-Identifikationsnummer: DE 812 575 276


В списке pgsql-general по дате отправления
От: Grzegorz Buś
Дата:
Сообщение: Re: could not bind IPv4 socket
От: Markus Wollny
Дата:
FAQ