Integer overflow in src/backend/executor/nodeHash.c in PostgreSQL 8.4.1 and earlier, and 8.5 through 8.5alpha2, allows remote authenticated users to cause a denial of service (daemon crash) via a SELECT statement with many LEFT JOIN clauses, related to certain hashtable size calculations.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10691
https://bugzilla.redhat.com/show_bug.cgi?id=546621
http://www.vupen.com/english/advisories/2010/1197
http://www.securityfocus.com/bid/38619
http://www.redhat.com/support/errata/RHSA-2010-0429.html
http://www.redhat.com/support/errata/RHSA-2010-0428.html
http://www.redhat.com/support/errata/RHSA-2010-0427.html
http://www.openwall.com/lists/oss-security/2010/03/16/10
http://www.openwall.com/lists/oss-security/2010/03/09/2
http://secunia.com/advisories/39820
http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
http://archives.postgresql.org/pgsql-bugs/2009-10/msg00310.php
http://archives.postgresql.org/pgsql-bugs/2009-10/msg00289.php
http://archives.postgresql.org/pgsql-bugs/2009-10/msg00287.php
http://archives.postgresql.org/pgsql-bugs/2009-10/msg00277.php