Re: BUG #11638: Transaction safety fails when constraints are dropped and analyze is done

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: cg(at)osss(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #11638: Transaction safety fails when constraints are dropped and analyze is done
Date: 2014-10-29 22:15:59
Message-ID: 26019.1414620959@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

cg(at)osss(dot)net writes:
> When, within a transaction:
> * I drop a foreign key (or any) constraint.
> * Load some data to the table which won't fit the constraint.
> * Analyze the table.
> * Attempt to re-add the constraint which fails and should roll back the
> whole transaction.
> The constraint is still missing after rollback.
> If I take out the analyze step, it works as expected.

Fix committed, many thanks for chasing this down to the point of having a
reproducible case! I imagine this was a real bear to pinpoint.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message jeff.janes 2014-10-30 19:39:30 BUG #11829: pgcrypto doc bug
Previous Message casey 2014-10-29 21:45:31 BUG #11825: "select lead('literal text') ..." -> could not determine polymorphic type