ok, here the cleaned case.
Problem appears if A-B-C, A references B, B-mapper is polymorphic
too, and there are 3 instances saved - A,B,C.
It is similar as in
http://groups.google.com/group/sqlalchemy/browse_thread/thread/5f05c11e3c168fb5/3c956e71dc724214#3c956e71dc724214
but there the
like this one...this does your generating thing. but much easier
to understand, since the actual test is clearly spelled out:
http://www.sqlalchemy.org/trac/browser/sqlalchemy/trunk/test/orm/
abc_inheritance.py
does that work under postgress?
i mean the duplicating id-column issue, for