Skip site navigation (1) Skip section navigation (2)

Why tuning is not giving better performance?

From: Yangyang <yangyangbm(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Why tuning is not giving better performance?
Date: 2011-12-01 18:00:30
Message-ID: CAN3Hncxdc_WB2wNSEBw0-D4KRU9uQtjeZHGj8xtP-OAvH5v3xQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hi, all
Sorry to interrupt. I am using PostgreSQL 9.1.1 and populated database
with DBT-3.
I changed some parameters the default postgresql.conf, like
shared_buffers and checkpoint_segments. But the query is taking the
same time, using the same query plan. The output is same for
"explain".
Am I doing the right way to tune the database?

I'm using the following query, TPC-H Q1:
select
l_returnflag,
l_linestatus,
sum(l_quantity) as sum_qty,
sum(l_extendedprice) as sum_base_price,
sum(l_extendedprice * (1 - l_discount)) as sum_disc_price,
sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge,
avg(l_quantity) as avg_qty,
avg(l_extendedprice) as avg_price,
avg(l_discount) as avg_disc,
count(*) as count_order
from
lineitem
where
l_shipdate <= date('1998-12-01') - interval '90 days'
group by
l_returnflag,
l_linestatus
order by
l_returnflag,
l_linestatus;

I keep asking questions in here. Sorry for any interrupt.
-Yangyang Wu

pgsql-novice by date

Next:From: Henry DrexlerDate: 2011-12-02 15:12:52
Subject: stumped on a with recursive example
Previous:From: Tom LaneDate: 2011-12-01 02:58:33
Subject: Re: How can I make PostgreSQL to select another quey plan?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group