Re: ideas on optimization - Mailing list pgsql-general

From Doug McNaught
Subject Re: ideas on optimization
Date
Msg-id m366e1simj.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to ideas on optimization  ("Andy Jenks" <andy@compete.com>)
Responses Re: ideas on optimization  ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>)
List pgsql-general
"Andy Jenks" <andy@compete.com> writes:

> currently we are testing postgres vs DB2 on speed and scalability.  our test
> database is approx 30GB and we are running freeBSD 4.3-STABLE with a 733MHZ
> processor and 1GB of ram with postgres 7.1.2.  our postgres queries are
> taking over 4min while our DB2 queries are taking less than 30 sec.  this is
> really bad considering our DB will grow to over 6TB for 1 year worth of
> data.  Can postgres handle this, and is there a way to optimize the
> postmaster to use all the system resources that it needs.  currently we
> start the postmaster this way:
> pg_ctl -o "-o -F -B 3000 -N 2 -ps -pn" start
> any help would be great.

It would help if you post your schema (including indexes), and the
EXPLAIN output from the queries you're testing.  I'm not an SQL
optimization guru (yet) but there are plenty of people on the list
that are.

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time...          --Dylan

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: total newbie question
Next
From: Neil Conway
Date:
Subject: Re: Text data type doesn't accept newlines?