Re: Does PostgreSQL have complete functional test cases?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tianyin Xu <tixu(at)cs(dot)ucsd(dot)edu>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does PostgreSQL have complete functional test cases?
Date: 2012-11-09 02:10:24
Message-ID: 20121109021024.GA26606@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Nov 8, 2012 at 05:37:22PM -0800, Tianyin Xu wrote:
> Thanks, Craig,
>
> Yes, I know "context diff". What I don't know is whether + or - some rows is a
> big problem, let's say correctness problem. I didn't write the test cases so I
> don't know what these test cases are exactly doing.
> If you tell me the failure of these test cases are severe and not acceptable,
> I'm fine with it. It means these configurations are not allowed.
>
> For this particular case, I figured out that it's because of the following
> settings,
>
> cpu_index_tuple_cost = 2147483647
>
> which assigned a big number to the cpu_index_tuple_cost, affecting the query
> planner.
>
> But to me, the configuration settings should not affect the correctness, right?
> Because whatever optimizations you do, the results should be the same (what
> matters is the performance). And that's why I need testing before adjusting
> these values.

We can't test the optimizer is reasonable if you change settings in this
way, so no, I am not surprised it failed.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2012-11-09 02:28:43 Re: Does PostgreSQL have complete functional test cases?
Previous Message 高健 2012-11-09 01:59:06 Re: How is execution plan cost calculated for index scan