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 1hApbp-0004iM-Nm for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Apr 2019 05:35:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hApbo-0002Pf-9Y for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Apr 2019 05:35:48 +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 1hApbn-0002P8-Uy for pgsql-bugs@lists.postgresql.org; Mon, 01 Apr 2019 05:35:48 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hApbl-0001Sh-9I for pgsql-bugs@lists.postgresql.org; Mon, 01 Apr 2019 05:35:46 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x315ZhZu026260; Mon, 1 Apr 2019 14:35:43 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 2A15E638D9F; Mon, 1 Apr 2019 14:35:43 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 1EB72638D16; Mon, 1 Apr 2019 14:35:43 +0900 (JST) Received: from [IPv6:::1] (unknown [129.60.241.75]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 13E52400B71; Mon, 1 Apr 2019 14:35:43 +0900 (JST) Message-ID: <5CA1A320.4050707@lab.ntt.co.jp> Date: Mon, 01 Apr 2019 14:35:28 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Subject: Re: BUG #15724: Can't create foreign table as partition References: <20190329141050.GA22336@alvherre.pgsql> In-Reply-To: <20190329141050.GA22336@alvherre.pgsql> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Alvaro Herrera Cc: Tom Lane , stepya@ukr.net, pgsql-bugs@lists.postgresql.org X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk (2019/03/29 23:10), Alvaro Herrera wrote: > On 2019-Mar-29, Tom Lane wrote: > >> Alvaro Herrera writes: >>> On 2019-Mar-29, PG Bug reporting form wrote: >>>> SQL Error [42809]: ERROR: cannot create index on foreign table "msg_json" >> Really, what *ought* to happen in such a case is that the FDW gets >> told about the command and has the opportunity to try to do something >> corresponding to making an index. Interesting! >> corresponding to making an index. But that smells like a new feature >> rather than a bug fix. > ENOTIME to get it done for pg12 I suppose (I don't know a thing about > postgres_fdw or the FDW API layer). Yeah, I think so. >> I'm not sure that just forcing the case to be a no-op is wise. >> What if the index is supposed to be UNIQUE? > > Hmm, good point, that should be disallowed too. Agreed. Best regards, Etsuro Fujita