Hi, as it turned out, db_check_quotum_used() did not work in the form it was in on PostgreSQL. It did work on MySQL. After taking a look at Anton Nekhoroshih's Oracle code, I decided to change the query to the Oracle form. I've checked that this also works on MySQL and PostgreSQL.
Ilja