Re: problem with query - Mailing list pgsql-general

From Sašo Gantar
Subject Re: problem with query
Date
Msg-id CAGB0_67P1JNuVXAijwXtET9YTpqWO=Uii=oeMb-KVaKXQCp=JQ@mail.gmail.com
Whole thread Raw
In response to Re: problem with query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: problem with query
List pgsql-general
ANALYZE pg_class; doesn't help
also, query is from "Hasura", so I don't have much room to maneuver

On Tue, 21 May 2024 at 16:18, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Sašo Gantar <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: Dmitry O Litvintsev
Date:
Subject: Re: Confusing error message in 15.6
Next
From: Laurenz Albe
Date:
Subject: Re: Confusing error message in 15.6