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

Re: Query performance

From: "Bill" <bill(at)math(dot)uchicago(dot)edu>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Query performance
Date: 2004-06-28 17:02:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance here lies the output of oclh (i.e "\d oclh")  

                    Table "public.oclh"
 Column |         Type          |           Modifiers           
 symbol | character varying(10) | not null default ''
 date   | date                  | not null default '0001-01-01'
 open   | numeric(12,2)         | not null default '0.00'
 close  | numeric(12,2)         | not null default '0.00'
 low    | numeric(12,2)         | not null default '0.00'
 high   | numeric(12,2)         | not null default '0.00'
Indexes: symbol_2_oclh_index btree (symbol, date),
         symbol_oclh_index btree (symbol, date)

-----Original Message-----
From: pgsql-performance-owner(at)postgresql(dot)org
[mailto:pgsql-performance-owner(at)postgresql(dot)org] On Behalf Of Richard Huxton
Sent: Monday, June 28, 2004 4:14 AM
To: Bill
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] Query performance

Bill wrote:
> Actually, I have some queries that are slow, however I was wondering if
> could help me write a query that is rather simple, but I, as a true
> novice, can't seem to conjure.  So we have stocks, as I have previously
> said, and I have a huge table which contains all of the opening and
> prices of some stocks from each day. 

Schemas, Bill - show us your table definitions so people can see exactly 
where they stand.

   Richard Huxton
   Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

In response to


pgsql-performance by date

Next:From: JimDate: 2004-06-28 17:44:03
Subject: Re: SQL stupid query plan... terrible performance !
Previous:From: Josh BerkusDate: 2004-06-28 16:47:59
Subject: Re: postgres 7.4 at 100%

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