As we know PostgreSQL runs fine on. https://www.postgresql.org/download/linux/redhat/
I haven't seen what TDOM version Redhat uses. http://rpm.pbone.net/index.php3/stat/4/idpl/15289285/dir/redhat_el_6/com/tdom-0.8.2-6.el6.x86_64.rpm.html
Hope it helps! I