https://fluca1978.github.io/2022/04/20/PerlWeeklyChallenge161.html#task1plpgsql