From 4576b0af117b806b679c6d9bcebdac18bf8f3f1d Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Tue, 4 Dec 2018 07:49:18 +0100 Subject: [PATCH] Make sure that hypoTables is initialized in hypopg_add_partition. --- hypopg_table.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hypopg_table.c b/hypopg_table.c index 2119b17..5a31aed 100644 --- a/hypopg_table.c +++ b/hypopg_table.c @@ -3530,6 +3530,9 @@ HYPO_PARTITION_NOT_SUPPORTED(); /* Process any pending invalidation */ hypo_process_inval(); + if (!hypoTables) + hypo_initTablesHash(); + if (!PG_ARGISNULL(2)) partition_by = TextDatumGetCString(PG_GETARG_TEXT_PP(2));