\d does not seem to work except for a table in PostgreSQL.
I want to be able to retrieve the equivalent of \d <table>, but for a SELECT query.
For example, I would like to say:
\d (SELECT statement) AS table2
where the SELECT statement might contain JOINs and so on
just like in TimesTen:
desc (SELECT .. FROM ... WHERE ...)
gives column info like name, type, and length
I can use \pset footer on or --expanded but it doesn't give data type and length.