Re: Select with qualified join condition / Batch inserts - Mailing list pgsql-performance

From Tom Lane
Subject Re: Select with qualified join condition / Batch inserts
Date
Msg-id 10423.1097860081@sss.pgh.pa.us
Whole thread Raw
In response to Select with qualified join condition / Batch inserts  (Bernd <bernd_pg@genedata.com>)
List pgsql-performance
Bernd <bernd_pg@genedata.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

pgsql-performance by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Does PostgreSQL run with Oracle?
Next
From: Steve Atkins
Date:
Subject: Re: Does PostgreSQL run with Oracle?