display data type of table pgsql code example
Example 1: get all tables postgres
SELECT * FROM pg_catalog.pg_tables;
Example 2: postgre describe table
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = 'city';