Re: Constraint exclusion can't process simple constant expressions?
От
Claudio Freire
Тема
Re: Constraint exclusion can't process simple constant expressions?
Дата
Msg-id
BANLkTimvHBwg88a-WDxhz-=Ts6Ry6wNApQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Constraint exclusion can't process simple constant expressions? Josh Berkus <josh@agliodbs.com>
Re: Constraint exclusion can't process simple constant expressions? Tom Lane <tgl@sss.pgh.pa.us>
Re: Constraint exclusion can't process simple constant
expressions? Josh Berkus <josh@agliodbs.com>
Re: Constraint exclusion can't process simple constant expressions? Tom Lane <tgl@sss.pgh.pa.us>
Re: Constraint exclusion can't process simple constant expressions? Brendan Jurd <direvus@gmail.com>
Re: Constraint exclusion can't process simple constant
expressions? Josh Berkus <josh@agliodbs.com>
Re: Constraint exclusion can't process simple constant expressions? Brendan Jurd <direvus@gmail.com>
Re: Constraint exclusion can't process simple constant
expressions? Josh Berkus <josh@agliodbs.com>
Re: Constraint exclusion can't process simple constant expressions? Claudio Freire <klaussfreire@gmail.com>
Re: Constraint exclusion can't process simple constant expressions? Claudio Freire <klaussfreire@gmail.com>
Re: Constraint exclusion can't process simple constant
expressions? Josh Berkus <josh@agliodbs.com>
On Thu, Apr 21, 2011 at 4:05 AM, Brendan Jurd wrote: > > "IMMUTABLE indicates that the function cannot modify the database and > always returns the same result when given the same argument values" > > Emphasis on "always". If the result of the function, given the same > argument values, can be different after a SET, then it doesn't qualify > for immutability. At least, that's my understanding. That's a ridiculous use of the word "Immutable" In any CS class, the timezone would be an implicit input to the function. So it would be immutable in *that* sense (it also takes timezone into consideration). Perhaps the optimizer should take contextual information that cannot change inside a query as input too.
В списке pgsql-performance по дате отправления
От: Claudio Freire
Дата: