> Further pointers are welcome, otherwise if I figure it out myself, I'll
> post the results.
Just an opinion here, but I would implement these queries as views
similar to the information schema. That way you won't have to port
everything when the database changes. Once you upgrade to 7.4 you can
just keep on chugging away.
Greg