LP#1117808: new Pg function to calculate MARC record merges