Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6TV-0001H7-SP for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 14:19:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WO6TV-00087x-BQ for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 14:19:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6TU-000877-F3 for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 14:19:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6TR-0002CK-MC for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 14:19:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2DEJ0wX015350; Thu, 13 Mar 2014 10:19:00 -0400 From: Tom Lane To: Alvaro Herrera cc: majid@apsalar.com, pgsql-bugs@postgresql.org Subject: Re: BUG #9555: pg_dump for tables with inheritance recreates the table with the wrong order of columns In-reply-to: <20140313134739.GD4744@eldon.alvh.no-ip.org> References: <20140313043900.398.17129@wrigleys.postgresql.org> <20140313134739.GD4744@eldon.alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Thu, 13 Mar 2014 10:47:39 -0300" Date: Thu, 13 Mar 2014 10:19:00 -0400 Message-ID: <15349.1394720340@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > majid@apsalar.com wrote: >> Reproduction case: >> >> create table A(a int, b int, c int); >> create table B(a int, c int); >> alter table A inherit B; > I wonder if the real fix here is to have ALTER / INHERIT error out of > the columns in B are not a prefix of those in A. Years ago, we sweated quite a lot of blood to make these cases work. I'm not thrilled about throwing away all that effort because one person doesn't like the behavior. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs