> Wondering how to invoke a application like diff from plpgsql? Thanks! And don't forget that you are working with a database. Most diff-ing uses can probably be handled by constructs like EXCEPT and INTERSECT to say nothing of OUTER JOINs. Also, IS DISTINCT FROM is your friend if you want a comparison that treats NULLs as "normal" data values.