Karel Zak <email@example.com> writes:
> Why is there so different "Total runtime" for ('now'::text)::date) and
> '2005-04-06'::date ?
> I think both is constant during execution.
Not at all. text_date() is not immutable so it has to be applied during
execution. The other one is just a constant.
regards, tom lane