retrive pg_class and pg_attribute