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.92) (envelope-from ) id 1j9vJz-0004w1-Va for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 18:34:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9vJy-0001pO-QN for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 18:34:10 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9vJx-0001n2-No for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 18:34:10 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9vJt-0002rS-SO for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 18:34:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CE3DD21EB2; Thu, 5 Mar 2020 13:34:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 05 Mar 2020 13:34:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=s yU86Fl9TM29tsq6WbFiEB+nUu5sppWxuZ6CCbhO8Vg=; b=BTvsr3siYvQk7lxx7 0UNwFc2vtNdKSMmCPVAItENGu+IloMq1SfZ+d76VA6L2vzb5AQt+zViAhUgrwZqX jfSskhEneqqH0IKAPoiqqQP/4pYf9XC4OV8MUmv/VR1ssjqIW66AXN/8V8cqm+wj ItBQuVwYTpJ59AfSevgsxoYHOnBCr7cXm0WbdsXw8oV0gR/JBHCGl5YCsvmJ1dyy vp8R8P8EAuv1iOekbxbkLN5e2m+lUu3NszeXjUK+6rUYLfjaK5k5VMJ7290uCaI1 vz7q+muiyVHzlD6Z2bhjiL5L+4NgtzE/XyxLW44tXa5axRhFCAz4oYbW7CdCAfns iOziA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=syU86Fl9TM29tsq6WbFiEB+nUu5sppWxuZ6CCbhO8 Vg=; b=pVxeiMJ+9CQ2PQNJx83nKCAGm2y+gcXoplFthxL01m1rinnCz5MKqCNUm HOG1zfXXdPpI8jo74VV2jp64XeVD9O57WZXKBaeEqfwDtyJC+w4KAvXqd2YWCrfb q8Wnbcu2DesMXfoGJI4IY7uFOeRsY//R56ZHR83uCqswk4I9JQEDmnMHsqkFUGof EVSX3Xd1PeSntWIWaPuxiIxjjlkKA0IXCC3zXbtNQ+MZrzFBwNDhYAQYCVJx1alY mKTEVVNFAetMXPPubJvgcmTjr4lXdFbSMd9eDAd1qPRCUok6FOnfKxio9n2rdHqL SxU5oDWccaYaPgNMdS1vQYd7/yFbQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddutddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjeegrdel fedruddthedrudekieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from ranger.suse (74-93-105-186-washington.hfc.comcastbusiness.net [74.93.105.186]) by mail.messagingengine.com (Postfix) with ESMTPA id 301943060F09; Thu, 5 Mar 2020 13:34:03 -0500 (EST) Subject: Re: Getting a error on creating a partition table index 12.2. To: nikhil raj , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com> Date: Thu, 5 Mar 2020 10:34:02 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/5/20 10:04 AM, nikhil raj wrote: > HI ALL, > > While creating the index on the partition table i am getting error on > it  saying > > *ERROR: cannot specify default tablespace for partitioned relations SQL > state: 0A00.* > > Query is > > *CREATE INDEX t_e20so1_doi_c_doid_idx >     ON public.t_e20so1_doi USING btree >     (i_doid ASC NULLS LAST) >     TABLESPACE pg_default;* > * > * > * > * > Note:- but the same query is executed in the 12.1 version.its working fine. Well this ERROR appeared here: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;f=src/backend/commands/indexcmds.c;h=87259588d0ab0b8e742e30596afa7ae25caadb18 Thu, 25 Apr 2019 06:20:23 -0800 (10:20 -0400) That would encompass 12.1 also. Are you doing anything else to public.t_e20so1_doi prior to the above? -- Adrian Klaver adrian.klaver@aklaver.com