Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAqhS-0007fD-1k for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Apr 2019 06:45:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAqhQ-000734-Lo for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Apr 2019 06:45:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAqhQ-000729-Ai for pgsql-bugs@lists.postgresql.org; Mon, 01 Apr 2019 06:45:40 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAqhB-00030O-GS for pgsql-bugs@lists.postgresql.org; Mon, 01 Apr 2019 06:45:39 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x316jNFG027195; Mon, 1 Apr 2019 15:45:23 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 6EEC7EA7F6F; Mon, 1 Apr 2019 15:45:23 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 643EFEA7F66; Mon, 1 Apr 2019 15:45:23 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 5A69240028E; Mon, 1 Apr 2019 15:45:23 +0900 (JST) Subject: Re: BUG #15724: Can't create foreign table as partition References: <21389.1553868091@sss.pgh.pa.us> <20190329141050.GA22336@alvherre.pgsql> <1553869152.858391073.5f8m3n0x@frv53.fwdcdn.com> <5CA1A94E.1070002@lab.ntt.co.jp> From: Amit Langote Message-ID: <6e24fca7-07d1-4f6c-80ec-e817b58859bd@lab.ntt.co.jp> Date: Mon, 1 Apr 2019 15:45:14 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <5CA1A94E.1070002@lab.ntt.co.jp> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CC-Mail-RelayStamp: 1 To: Etsuro Fujita , Stepan Yankevych Cc: Alvaro Herrera , Tom Lane , pgsql-bugs@lists.postgresql.org X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fujita-san, On 2019/04/01 15:01, Etsuro Fujita wrote: > (2019/03/29 23:21), Stepan Yankevych wrote: >> I think we need at least to mention it in the doc >> https://www.postgresql.org/docs/11/ddl-partitioning.html >> >>> > Partitions can also be foreign tables, although they have some >> limitations that normal tables do not; see CREATE FOREIGN TABLE >> for more >> information >> For example >> Partitions can also be foreign tables*only in case main table is non >> indexed and doesn't contain PK,*although they have some limitations that >> normal tables do not; see CREATE FOREIGN TABLE >> for more >> information > > +1 for adding such notes, but I'm not sure if it's a good idea to put it > there because I think that would make the introductory documentation a bit > verbose.  How about adding it to the reference pages of CREATE FOREIGN > TABLE and ALTER TABLE like the attached? Thanks for creating the patch. Looks good to me. Thanks, Amit