From a395ecd1a07fdd52944b8be835faae0c97b42f8d Mon Sep 17 00:00:00 2001 From: yuzupy Date: Mon, 23 Apr 2018 04:41:34 +0000 Subject: [PATCH] Fix key->strategy --- hypopg_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypopg_table.c b/hypopg_table.c index 54ff5db..4fb1c9e 100644 --- a/hypopg_table.c +++ b/hypopg_table.c @@ -743,11 +743,13 @@ hypo_generate_partkey(CreateStmt *stmt, Oid parentid, hypoTable *entry) */ stmt->partspec = transformPartitionSpec(rel, stmt->partspec, &strategy); + key->strategy = strategy; ComputePartitionAttrs(rel, stmt->partspec->partParams, partattrs, &partexprs, partopclass, partcollation, strategy); + /*--- Adapted from RelationBuildPartitionKey ---*/ { ListCell *partexprs_item;