I just started looking at the CR and this seems like a really good idea. I've also been running Oracle and I'm thinking about switching some sites to Postgres;. It would be nice to be able to create most database structures in a database independent way. It also seems like object_type::create could be added with basically the same structure. Then you could create tables without writing two create table statements and you get object_types and attributes for free.