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

Re: BUG #3033: performance issue with self join

From: tomas(at)tuxteam(dot)de
To: Luigi Tarenga <luigi(dot)tarenga(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3033: performance issue with self join
Date: 2007-02-23 08:50:16
Message-ID: 20070223085016.GB17053@www.trapp.net (view raw or flat)
Thread:
Lists: 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(dot)tarenga(at)gmail(dot)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-----


In response to

pgsql-bugs by date

Next:From: tomasDate: 2007-02-23 08:52:47
Subject: Re: BUG #3034: FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
Previous:From: Magnus HaganderDate: 2007-02-23 08:31:09
Subject: Re: BUG #3049: psql does not honor md5 in pg_hba.conf file

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