Don,
RE: attributes.
Brad Duell, CR Oldham,Roc & Vivian Hernandez and myself have made an interface for this.
Vivian did most of the grunt work, and probably has the code but there is a
lot of hardcoded instances for the client in it.
I really don't have time to clean it up, and of course CR would have the ultimate say as to whether it is released or not, but I talked with him before and he said fine. It really is a complete package and of course if someone would voluneteer to clean it up that would probably be fine also.
BTW, only Oracle now, but should be easy to port to PG as I don't remember any strange SQL.