Re: constraint partition issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hyelluas <helen_yelluas(at)mcafee(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: constraint partition issue
Date: 2011-03-24 14:52:24
Message-ID: 24449.1300978344@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hyelluas <helen_yelluas(at)mcafee(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-03-24 15:00:44 Re: Deadlock in libpq
Previous Message Erik Hesselink 2011-03-24 14:48:51 Re: Deadlock in libpq