https://www.postgresqltutorial.com/plpgsql-function-parameters/