Search Postgresql Archives

Re: diff-/patch-functionality for text-type data insidePostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi! 

> -----Ursprüngliche Nachricht-----
> Von: Martijn van Oosterhout [mailto:kleptog@xxxxxxxxx] 
> Gesendet: Montag, 4. Mai 2009 15:30

> I've used the Algorithm::Diff module in the past with 
> success. It works on sequences of objects rather than just 
> text but it works well. That means you can diff on word or 
> character level at your choice, and even control what 
> sequences you consider "equal". That said, it doesn't have a 
> patch function but that should be fairly easy to make. You'll 
> need to define your own storage format for the diff though.
> 
> http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/lib/Algori
> thm/Diff.pm

Thank you - I have considered using Algorithm::Diff before, as Text::Diff seems to be based on that and one could, as you describe, create even more granular deltas than just line by line comparisons. The latter would however be fully sufficient for my needs, but I think I'll give Algorithm::Diff a closer look now :)

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



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux