Okay, tested the error, and yes, it happens when you use a non-admin-superuser account to try loading up register patron.
Applied Jason's fix to remove connectby for those functions and voila, happy registering new patrons.
Tested the upgrade script and clean DB rebuild for both Trusty with PG 9.3 and Xenial with PG 9.5.
Looks good, signed off and pushed to master.
Okay, tested the error, and yes, it happens when you use a non-admin-superuser account to try loading up register patron.
Applied Jason's fix to remove connectby for those functions and voila, happy registering new patrons.
Tested the upgrade script and clean DB rebuild for both Trusty with PG 9.3 and Xenial with PG 9.5.
Looks good, signed off and pushed to master.