List All Columns Of A Specific Type
> select table_name, column_name, data_type from information_schema.columns where table_schema = 'public' and data_type = 'timestamp without time zone';
table_name | column_name | data_type
-----------------+-------------+-----------------------------
articles | created_at | timestamp without time zone
articles | updated_at | timestamp without time zone
users | created_at | timestamp without time zone
users | updated_at | timestamp without time zone
(4 rows)> select table_name, column_name, data_type from information_schema.columns where table_schema = 'public' and data_type like '%timestamp%';Last updated