Re: PG planning randomly ?

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

 



"Laurent Raufaste" <analogue@xxxxxxxx> writes:
> I'm having some issues with this simple query:

> SELECT
>   _comment.*,
>   _article.title AS article_title,
>   _article.reference AS article_reference
> FROM
>   _comment
>   INNER JOIN _article
>     ON _article.id = _comment.parent_id
> WHERE
>   _comment.path <@ '0.1.3557034'
> ORDER BY
>   _comment.date_publishing DESC
> OFFSET 0
> LIMIT 5
> ;

> The varying information here is the ltree path "0.1.3557034"

What PG version is this?

If it's 8.2 or later then increasing the stats target for _comment.path
to 100 or more would likely help.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux