BUG #5530: Default cost of crypt causes poor decisions

From: "Baegle" <al(at)wifiny(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5530: Default cost of crypt causes poor decisions
Date: 2010-06-29 19:48:07
Message-ID: 201006291948.o5TJm7VN031050@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5530
Logged by: Baegle
Email address: al(at)wifiny(dot)org
PostgreSQL version: 8.4.4
Operating system: Linux - Ubuntu - Lucid Lynx - 2.6.31-19-generic
Description: Default cost of crypt causes poor decisions
Details:

The default cost of crypt() is 1, but crypt is intentionally a high cost
function. This mis-match between assigned cost and actual cost causes the
query planner to use crypt too soon and slows down execution of queries
significantly. The cost of the function should be more congruent with it's
intended cost.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-06-29 21:21:26 Re: Function works in 8.4 but not in 9.0 beta2 "ERROR: structure of query does not match function result type"
Previous Message dmp 2010-06-29 19:03:26 Re: [JDBC] JDBC: 2 bugs: Getting a smallint array actually gets an integer array and return type of a boolean array is bit.