Re: postgresql 10.1 wrong plan in when using partitions bug - Mailing list pgsql-performance

From Tom Lane
Subject Re: postgresql 10.1 wrong plan in when using partitions bug
Date
Msg-id 15592.1517758751@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgresql 10.1 wrong plan in when using partitions bug  (Mariel Cherkassky <mariel.cherkassky@gmail.com>)
Responses Re: postgresql 10.1 wrong plan in when using partitions bug
List pgsql-performance
Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:
> Great, it solved the issue. Seems problematic that the planner do full
> scans on all partitions in the first case isnt it ? Seems like a bug ?

to_date isn't an immutable function (it depends on timezone and possibly
some other GUC settings).  So there's a limited amount that the planner
can do with it.

            regards, tom lane


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgresql 10.1 wrong plan in when using partitions bug
Next
From: Mariel Cherkassky
Date:
Subject: Re: postgresql 10.1 wrong plan in when using partitions bug