Re: Partitioned tables and relfilenode - Mailing list pgsql-hackers

From Maksim Milyutin
Subject Re: Partitioned tables and relfilenode
Date
Msg-id b21582ce-7a6a-86ab-010b-fd927a545312@postgrespro.ru
Whole thread Raw
In response to Re: [HACKERS] Partitioned tables and relfilenode  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Crash on promotion when recovery.conf is renamed
Next
From: Fujii Masao
Date:
Subject: logical replication worker and statistics