@@ -45,12 +45,12 @@ std::string flex_table_t::id_column_names() const
4545
4646std::string flex_table_t::full_name () const
4747{
48- return " \" " + schema () + " \" . \" " + name () + " \" " ;
48+ return qualified_name ( schema (), name ()) ;
4949}
5050
5151std::string flex_table_t::full_tmp_name () const
5252{
53- return " \" " + schema () + " \" . \" " + name () + " _tmp\" " ;
53+ return qualified_name ( schema (), name () + " _tmp" ) ;
5454}
5555
5656flex_table_column_t &flex_table_t ::add_column(std::string const &name,
@@ -162,11 +162,6 @@ void table_connection_t::start(bool append)
162162 m_db_connection->exec (" RESET client_min_messages" );
163163
164164 if (!append) {
165- if (table ().schema () != " public" ) {
166- m_db_connection->exec (
167- " CREATE SCHEMA IF NOT EXISTS \" {}\" " _format (table ().schema ()));
168- }
169-
170165 m_db_connection->exec (table ().build_sql_create_table (
171166 table ().has_geom_column () ? flex_table_t ::table_type::interim
172167 : flex_table_t ::table_type::permanent,
@@ -299,7 +294,7 @@ void table_connection_t::stop(bool updateable, bool append)
299294 }
300295
301296 fmt::print (stderr, " Analyzing table '{}'...\n " , table ().name ());
302- m_db_connection->exec (" ANALYZE \" {} \" " _format ( table ().name () ));
297+ m_db_connection->exec (" ANALYZE " + table ().full_name ( ));
303298
304299 fmt::print (stderr, " All postprocessing on table '{}' done in {}s.\n " ,
305300 table ().name (), timer.stop ());
0 commit comments