Postgres 9.0 is already in Portage, but unfortunately we cannot make use of it in Qt yet. Patch is taken from Qt Bug Tracker and customized for version 4.7.1 of x11-libs/qt-sql. Just simple test listing tables of specified database was performed by me and it works. See details under provided URL, please. Reproducible: Always
Created attachment 254853 [details, diff] files/4.7.1-pg9.patch Taken from Qt Bug Tracker, merged and customized for 4.7.1.
Created attachment 254855 [details, diff] qt-sql-4.7.1-pg9.patch Adds patch #254853 to ebuild. By the way repoman's warning about not quoting vars is fixed.
I was waiting for upstream to respond the bug, but it's taking too long, so I went ahead and applied this one. Thanks for reporting :) + 05 Dec 2010; Alex Alexander <wired@gentoo.org> +qt-sql-4.7.1-r1.ebuild, + +files/qt-sql-4.7.1_postgres_9.patch: + added patch for postgres 9, bug #346099