From 53603562368fc501edbe8c5895d92714d2841c42 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 8 Jun 2021 15:06:12 +0200 Subject: [PATCH] Bugfix: Do not create table as unlogged if it is not clustered Tables created with the flex output that were marked `cluster: "no"` were created as unlogged tables. This should only be done for tables which will be replaced by their clustered copy later on. See #27 --- src/flex-table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flex-table.cpp b/src/flex-table.cpp index 3ec73d8e9..e97c71afa 100644 --- a/src/flex-table.cpp +++ b/src/flex-table.cpp @@ -173,7 +173,7 @@ void table_connection_t::start(bool append) if (!append) { m_db_connection->exec(table().build_sql_create_table( - table().has_geom_column() ? flex_table_t::table_type::interim + table().cluster_by_geom() ? flex_table_t::table_type::interim : flex_table_t::table_type::permanent, table().full_name()));