I'm interacting with a PostgreSQL on command-line based environment, and I'd like to be able to determine the data types of the table columns in this database.
For a simple example, when I request
SELECT * FROM products
I'd like to know if the product id column it returns is giving me text or integers.