Re: Select with qualified join condition / Batch inserts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bernd <bernd_pg(at)genedata(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Select with qualified join condition / Batch inserts
Date: 2004-10-15 17:08:01
Message-ID: 10423.1097860081@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Bernd <bernd_pg(at)genedata(dot)com> writes:
> 1/ The following query takes about 5 sec. with postrgres whereas on Oracle it
> executes in about 30 ms (although both tables only contain 200 k records in
> the postgres version).

What does EXPLAIN ANALYZE have to say about it? Have you ANALYZEd the
tables involved in the query?

You would in any case be very well advised to change the "numeric"
columns to integer, bigint, or smallint when appropriate. There is
a substantial performance advantage to using the simple integral
datatypes instead of the general numeric type.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Steve Atkins 2004-10-15 17:19:48 Re: Does PostgreSQL run with Oracle?
Previous Message Bruce Momjian 2004-10-15 17:02:20 Re: Does PostgreSQL run with Oracle?