CDB_RegenerateTable: Remove logs

This commit is contained in:
Raúl Marín 2020-11-17 17:17:31 +01:00
parent d3ffcbc97e
commit 7067feb626

View File

@ -65,18 +65,14 @@ BEGIN
ON c.relnamespace = ns.oid
WHERE c.oid = %L', tableoid) INTO table_name;
RAISE DEBUG '%', FORMAT('CREATE TEMPORARY TABLE %s ON COMMIT DROP AS SELECT * FROM %s', temp_name, table_name);
EXECUTE FORMAT('CREATE TEMPORARY TABLE %s ON COMMIT DROP AS SELECT * FROM %s', temp_name, table_name);
RAISE DEBUG '%', FORMAT('DROP TABLE %s', table_name);
EXECUTE FORMAT('DROP TABLE %s', table_name);
FOR i IN 1 .. array_upper(queries, 1)
LOOP
RAISE DEBUG '% - %', i, queries[i];
EXECUTE queries[i];
END LOOP;
RAISE DEBUG '%', FORMAT('INSERT INTO %s SELECT * FROM %I', table_name, temp_name);
EXECUTE FORMAT('INSERT INTO %s SELECT * FROM %I', table_name, temp_name);
END
$$ LANGUAGE PLPGSQL VOLATILE PARALLEL UNSAFE;