Re: constraint partition issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: constraint partition issue
Дата
Msg-id 24449.1300978344@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: constraint partition issue  (hyelluas <helen_yelluas@mcafee.com>)
Список pgsql-general
hyelluas <helen_yelluas@mcafee.com> writes:
> You are right to the point, Tom.
> The datex is timestamp with time zone and the constraints were created as
> timestamp without time zone.
> As soon as I fixed that , it all started working.

OK.  In case anybody is wondering *why* that fixed it: a comparison
between timestamp with time zone and timestamp without time zone isn't
immutable, because it depends on the "timezone" runtime parameter to
interpret the timestamp without time zone.  So the planner can't rely
on deductions about the comparison while making the plan --- they might
not be true anymore by the time the plan is executed.  Upshot is that
the constraint exclusion machinery ignores these constraints.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Erik Hesselink
Дата:
Сообщение: Re: Deadlock in libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Deadlock in libpq