Re: BUG #3033: performance issue with self join - Mailing list pgsql-bugs

From tomas@tuxteam.de
Subject Re: BUG #3033: performance issue with self join
Date
Msg-id 20070223085016.GB17053@www.trapp.net
Whole thread Raw
In response to BUG #3033: performance issue with self join  ("Luigi Tarenga" <luigi.tarenga@gmail.com>)
List pgsql-bugs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Feb 19, 2007 at 08:27:32PM +0000, Luigi Tarenga wrote:
>
> The following bug has been logged online:
>
> Bug reference:      3033
> Logged by:          Luigi Tarenga
> Email address:      luigi.tarenga@gmail.com
> PostgreSQL version: 8.1.4
> Operating system:   OpenBSD 4.0 amd64
> Description:        performance issue with self join
> Details:
[...]
> i'm used to run a query like this one on a 14 row table:
[...]
> and the first time it takes about 30 seconds on my pc.
> the problem raise when i make lots of insert in the
> same table and then delete new rows until i left the
> original 14 [...]
> forever (i waited more then 10 minutes).

You might want to vacuum the table at this point. This might restore
performance.

HTH
- - tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF3qrIBcgs9XrR2kYRAiOvAJ9laDBqRQMU2oCoUuIgz1zkc/desQCfUI01
rRIkh97lE3c4hXhltXBjsxw=
=nEPt
-----END PGP SIGNATURE-----

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #3049: psql does not honor md5 in pg_hba.conf file
Next
From: tomas@tuxteam.de
Date:
Subject: Re: BUG #3034: FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied