Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE
Date
Msg-id 20120122050531.GA15693@tornado.leadboat.com
Whole thread Raw
In response to Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE  (Jeff Janes <jeff.janes@gmail.com>)
Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Sat, Jan 21, 2012 at 08:04:20PM -0800, Jeff Janes wrote:
> This is failing "make check" for me.
>
>
> *** /tmp/foo/src/test/regress/expected/alter_table.out  Sat Jan 21 19:51:46 2012
> --- /tmp/foo/src/test/regress/results/alter_table.out   Sat Jan 21 19:54:18 2012
> ***************
> *** 1662,1667 ****
> --- 1662,1668 ----
>   NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
> "norewrite1_parent_pkey" for table "norewrite1_parent"
>   DEBUG:  building index "norewrite1_parent_pkey" on table "norewrite1_parent"
>   CREATE TABLE norewrite1_child(c text REFERENCES norewrite1_parent);
> + DEBUG:  building index "pg_toast_41491_index" on table "pg_toast_41491"
>   ALTER TABLE norewrite1_child ALTER c TYPE varchar; -- recheck FK
>   DEBUG:  validating foreign key constraint "norewrite1_child_c_fkey"
>   CREATE DOMAIN other_int AS int;

Thanks.  I've attached a new version fixing this problem.

Attachment

pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: JSON for PG 9.2
Next
From: Noah Misch
Date:
Subject: Re: Second thoughts on CheckIndexCompatible() vs. operator families