Allow materialized views as input table to pivot
Created by: JohnDeGitt
Use pg_attribute (Postgresql catalog table) instead of information_schema to get metadata on Postgresql relations. It is faster and contains details about all relations: tables, views and materialized views. Closes #4 (closed).
Use current_schema() as a relation name prefix to make sure that it refers current schema (the same names can exist in different schemas).