1select t.table_schema,
2 t.table_name
3from information_schema.tables t
4inner join information_schema.columns c on c.table_name = t.table_name
5 and c.table_schema = t.table_schema
6where c.column_name = 'last_name'
7 and t.table_schema not in ('information_schema', 'pg_catalog')
8 and t.table_type = 'BASE TABLE'
9order by t.table_schema;