Re: Bug in ALTER COLUMN SET DATA TYPE ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug in ALTER COLUMN SET DATA TYPE ?
Date
Msg-id 26992.1351867274@sss.pgh.pa.us
Whole thread Raw
In response to Bug in ALTER COLUMN SET DATA TYPE ?  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Responses Re: Bug in ALTER COLUMN SET DATA TYPE ?  (Pavan Deolasee <pavan.deolasee@gmail.com>)
List pgsql-hackers
Pavan Deolasee <pavan.deolasee@gmail.com> writes:
> I noticed this behavior on master and it seems like a bug to me:

> postgres=# CREATE TABLE test (a float check (a > 10.2));
> CREATE TABLE
> postgres=# CREATE TABLE test_child() INHERITS(test);
> CREATE TABLE
> postgres=# ALTER TABLE test ALTER COLUMN a SET DATA TYPE numeric;
> ERROR:  constraint must be added to child tables too

Interestingly, this works in 8.3 and earlier ... but it fails as
described in all later versions.  So we broke it quite some time back.
It would be good to identify exactly what change broke it.
        regards, tom lane



pgsql-hackers by date:

Previous
From: John Lumby
Date:
Subject: Re: [PATCH] Prefetch index pages for B-Tree index scans
Next
From: Dimitri Fontaine
Date:
Subject: Re: [9.1] 2 bugs with extensions