> Thanks for that James... I've been trying to work out how to do it for ages!
>
> I have to agree with Richard though, it would be very nice to have it
> within psql. Furthermore, it would be great if such functionality
> could be extended to all \d? queries. In fact, and I'm sure there actually
> is a way to this if you're more knowledgeable than I, since most of these
> \d? queries basically yield a 'SQL' table, wouldn't be nice to be able to
> perform SQL on the (e.g. select * from \df where function = 'int2_text';
> etc.)
>
> Or am I just getting carried away! 8)
>
You know, I think there might be a way to do that, because I believe in some SQL
Databases, you can actually do queries against the catalogs; perhaps you can do
that with Postgress. I don't know for sure though...james