Is it Possible To Generate a "Diff" Between Two Strings in PostgreSQL (or in a Library/Tool)?

Viewed 30

When one compares two strings, there's a standard "diff" format. If I removed the letter "A" and replaced it with the letter "B", a diff of the change might look like:

- A
+ B

My question is, does PostgreSQL have any way (either built-in, or via 3rd-party code) to generate such a "diff" from two varchar or text inputs?

0 Answers
Related