Re: problem with query - Mailing list pgsql-general

From Tom Lane
Subject Re: problem with query
Date
Msg-id 3901400.1716301132@sss.pgh.pa.us
Whole thread Raw
In response to Re: problem with query  (Sašo Gantar <sasog23@gmail.com>)
Responses Re: problem with query
List pgsql-general
=?UTF-8?B?U2HFoW8gR2FudGFy?= <sasog23@gmail.com> writes:
> thanks for the info, but is there any solution, given that it's system
> tables?

Given the complexity of the query, I wonder if you're running into
problems with join_collapse_limit/from_collapse_limit preventing
the planner from considering all options.

Also, as David already mentioned, ANALYZE on pg_class might help.

            regards, tom lane



pgsql-general by date:

Previous
From: HORDER Philip
Date:
Subject: RE: Restore of a reference database kills the auto analyze processing.
Next
From: Adrian Klaver
Date:
Subject: Re: Restore of a reference database kills the auto analyze processing.