http://archives.postgresql.org/pgsql-eu-general/2008-02/msg00031.php