Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csWMJ-0004bB-Hh for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 15:15:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csWMJ-0007o1-4V for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 15:15:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csWKn-0004ax-E7 for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 15:13:29 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csWKj-0006Ug-Oh for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 15:13:27 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id B495D21C2511; Mon, 27 Mar 2017 18:13:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Subject: Re: Partitioned tables and relfilenode DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1490627604; bh=u/f1fm1BElCKUdn7SVFFusojdEGfsJNj9Dd1rvrajz4=; h=To:References:Cc:From:Date:In-Reply-To; b=HXQH3cZ6BT5BIzNTRL/RmRmokKPBwp/Dk0e2B/sHDKLwM7kr1VcTx21hE8IZkm3s7 I2jTsDsI0urLFgAtIQ/vojOndwEh0zgHknmmoNXw6sifjUz7f4G2bCnH0XcosI2AAU Mc5rGjp0M7fb9+5Sky3duuGAlbRfv+Im+JJCCulU= To: Amit Langote , Amit Langote References: <2b0d42f2-3a53-763b-c9c2-47139e4b1c2e@lab.ntt.co.jp> <5f5688f7-809e-5be9-f2b1-75e8b62cf548@lab.ntt.co.jp> <6837c359-45c4-8044-34d1-736756335a15@lab.ntt.co.jp> <5c1adf61-3293-1365-e31c-b6f672446c73@postgrespro.ru> Cc: Robert Haas , "pgsql-hackers@postgresql.org" From: Maksim Milyutin Message-ID: Date: Mon, 27 Mar 2017 18:13:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) 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 On 24.03.2017 03:54, Amit Langote wrote: > > And here is the updated patch. > Perhaps you forgot my fix in the updated patch diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 3999e6e..36917c8 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -1823,7 +1823,8 @@ heap_drop_with_catalog(Oid relid) */ if (rel->rd_rel->relkind != RELKIND_VIEW && rel->rd_rel->relkind != RELKIND_COMPOSITE_TYPE && - rel->rd_rel->relkind != RELKIND_FOREIGN_TABLE) + rel->rd_rel->relkind != RELKIND_FOREIGN_TABLE && + rel->rd_rel->relkind != RELKIND_PARTITIONED_TABLE) { RelationDropStorage(rel); } -- Maksim Milyutin Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers