Is there a way to easily get the column types of a query result? I read the psql documentation, but I don't think it supports that. Ideally, I'd be able to get something like:
columna : text | columnb : integer
----------------+-------------------
oh hai | 42
Is there a way I can get this information without coding something up?
psqlcan show it to you directly. But it should be fairly easy to modify it to do so. Perhaps you could write a stored procedure to emulate this though.