Here is a proposal for implemented functionality. http://chernowiki.ru/index.php?node=87 for PostgreSQL. John