"You can also pass in table names as parameters, and then address them like table_name.function_name, but I've not played with this."
Are you talking about another mechanism besides the EXECUTE statements that are used to build dynamic queries in PL/PgSql? If so, is this feature documented anywhere?