标签: sql postgresql
对于temp table temp_data,我正在使用
temp table
temp_data
CREATE TABLE perm_data as (SELECT * FROM temp_data);
是否有比创建表的完整副本更有效的方法?
答案 0 :(得分:1)
无法将临时表更改为永久表,至少没有比复制完整表的方法更好的方法。
尝试通过更改架构来欺骗PostgreSQL将导致
ERROR: cannot move objects into or out of temporary schemas