Re: postrgesql query planner wrong desicion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Jun 17, 2022 at 4:48 AM Kenny Bachman <kenny.bachman17@xxxxxxxxx> wrote:
Hello Team,

I have a 12.11 postgresql database on Linux. When I ran the below query, the query planner uses the gist index. However, the query runs faster if I drop the gist index, because the query planner uses the b-tree index. Why does the query planner use the gist index instead of the b-tree?

Please show the definition of both indexes.  Also, eliminate the joins and where clause conditions which are not needed to reproduce the base problem, then show the full plans, not just one line.

Cheers,

Jeff

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux