Hello Dave, > It would be infinitely easier to answer this question if you posted both functions and the plans before posting lengthy code to the list, I just wanted to verify beforehand that this is not a well known issue.
pgsql-interfaces by date:
Соглашаюсь с условиями обработки персональных данных