In certain circumstances where I cannot exactly determine what is causing this, using this recent addition causes the psycopg2-driver to complain:
One example: (db.akb_auth_sa_univ_link.year == item.year)).count(cache=(cache.ram,3600)) causes InternalError: current transaction is aborted, commands ignored until end of transaction block changing the code to count() as it was previously, solved the problem. As I said the problem show up from time to time. It seems when there are more complicated queries or more data involved. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) --

