Why tuning is not giving better performance? - Mailing list pgsql-novice

From Yangyang
Subject Why tuning is not giving better performance?
Date
Msg-id CAN3Hncxdc_WB2wNSEBw0-D4KRU9uQtjeZHGj8xtP-OAvH5v3xQ@mail.gmail.com
Whole thread Raw
List 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:

Previous
From: Tom Lane
Date:
Subject: Re: How can I make PostgreSQL to select another quey plan?
Next
From: Henry Drexler
Date:
Subject: stumped on a with recursive example