- update postgres function to modern style plpgsql definitions using dollar quoting