feeder: fix debug message on schema renaming (#42323)

This commit is contained in:
Serghei Mihai 2020-04-30 12:14:11 +02:00
parent c68304bf96
commit 799d799565
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ CREATE TABLE public.dates AS (SELECT
self.logger.debug('dropping schema %s', self.schema)
self.drop_tables_sequencially(self.schema)
self.ex('DROP SCHEMA IF EXISTS {schema} CASCADE')
self.logger.debug('dropping schema %s to %s', self.schema + '_temp', self.schema)
self.logger.debug('renaming schema %s to %s', self.schema + '_temp', self.schema)
self.ex('ALTER SCHEMA {schema_temp} RENAME TO {schema}')
finally:
# prevent connection from remaining open