Re: Query sometimes takes down server

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query sometimes takes down server
Date: 2009-01-16 19:04:16
Message-ID: 1232132656.17048.19.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2009-01-16 at 12:35 -0600, Jason Long wrote:
> The schema is not auto generated. It evolved as I created my
> inventory system.
> It is relatively easy for humans to understand. Or at least for me
> since I wrote it.

On second look, there aren't that many tables. There are just a lot of
self joins. Those are going to be hard for PostgreSQL to optimize
effectively.

Looks like it's just the query that's hard to understand. You might do
better just writing it yourself from scratch.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2009-01-16 19:04:37 Re: Query sometimes takes down server
Previous Message Martin Gainty 2009-01-16 18:37:01 Re: Query sometimes takes down server