Re: Bug in ALTER COLUMN SET DATA TYPE ?
Pavan Deolasee <pavan.deolasee@gmail.com>
From: Pavan Deolasee <pavan.deolasee@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Nikhil Sontakke <nikkhils@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2012-11-02T15:39:00Z
Lists: pgsql-hackers
On Fri, Nov 2, 2012 at 9:00 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > > In the 8.4 branch, the error is coming from here: > > regression=# \set VERBOSITY verbose > regression=# ALTER TABLE test ALTER COLUMN a TYPE numeric; > ERROR: 42P16: constraint must be added to child tables too > LOCATION: ATAddCheckConstraint, tablecmds.c:4467 > > which appears to have been added in commit cd902b331. I think the > commit Pavan is looking at just moved the logic around. > I also though that for a moment, but the commit that I mentioned did not move that error message from somewhere else. I also tested by resetting to commit 1f0363001166ef6a43619846e44cfb9dbe7335ed (previous to the offending commit) and don't see any error. But since you're seeing it, may it was taken out by some other older commit and then added back again. Will look more into it Thanks, Pavan
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Recast "ONLY" column CHECK constraints as NO INHERIT
- 09ff76fcdb27 9.2.0 cited
-
Adjust join_search_one_level's handling of clauseless joins.
- 1f0363001166 9.2.0 cited
-
Allow CHECK constraints to be declared ONLY
- 61d81bd28dbe 9.2.0 cited
-
Change the rules for inherited CHECK constraints to be essentially the same
- cd902b331dc4 8.4.0 cited