Creating a Dynamic PostgreSQL Function with Schema and Table Name Parameters