Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxaLE-0003oL-Bv for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 14:30:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxaLD-0007zU-Se for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 14:30:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxaLD-0007xZ-3h for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 14:30:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxaL9-0004lP-Fn for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 14:30:50 +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 v3AEUhXC011854; Mon, 10 Apr 2017 10:30:43 -0400 From: Tom Lane To: Stephen Frost cc: Robert Haas , Noah Misch , Amit Langote , Pg Hackers Subject: Re: pg_dump emits ALTER TABLE ONLY partitioned_table In-reply-to: <20170410141251.GJ9812@tamriel.snowman.net> References: <7682253a-6f79-6a92-00aa-267c4c412870@lab.ntt.co.jp> <9599c3b3-87d4-39d1-1f75-d205a726b863@lab.ntt.co.jp> <9c6a9a7d-684f-bb8b-b972-ee20445a9e6d@lab.ntt.co.jp> <20170409235057.GA2842536@tornado.leadboat.com> <7227.1491790247@sss.pgh.pa.us> <20170410141251.GJ9812@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Mon, 10 Apr 2017 10:12:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11852.1491834643.1@sss.pgh.pa.us> Date: Mon, 10 Apr 2017 10:30:43 -0400 Message-ID: <11853.1491834643@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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> While I admit that I've not been paying close attention to the whole >> table partitioning business, I wonder whether we have any clearly written >> down specification about (a) how much partition member tables are allowed >> to deviate schema-wise from their parent, and (b) how DDL semantics on >> partitioned tables differ from DDL semantics for traditional inheritance. > Right. I thought I had understood that partition child tables really > can't deviate from the parent table in terms of columns or constraints > but might be allowed to differ with regard to indexes (?). Well, there's an awful lot of logic that's only of interest if partition children can have different column orders from their parents. I really fail to understand what's the point of allowing that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers