Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> Well, I thought it'd be easy but a whole bunch of commands use the
> listTables function which is great if they all output the same. However, to
> add one column is not so easy.
I was thinking of adding a line to the output for "\d index".
> I mean, while I'm at it I could show the
> query defining a view.
We already do -- try "\d view".
regards, tom lane