amazon-redshift - 删除由 Amazon Redshift 创建的临时表
问题描述
我正在尝试删除由 Redshift 创建的临时表。我使用以下查询来查找集群中的所有临时表:
select name, count(distinct id)
from stv_tbl_perm
where temp = 1
group by 1
我要删除的表称为$stg_inappshourly
. 我试图在以下两种方法中删除它:
drop table $stg_inappshourly
drop table stg_inappshourly
第一个返回语法错误。第二个删除实际表。
任何想法如何丢弃它?
解决方案
解决了。
该表保持存在的原因是其会话出现错误并且未按预期关闭。
我发现删除此表的唯一方法是重新启动 Redshift 实例。
推荐阅读
- ssl - CloudFlare 工作人员获取 HTTPS 适用于workers.dev 子域,但不适用于自己的子域,出现 525 错误
- discord.py - Discord.py AttributeError:“命令”对象没有属性“冷却”
- java - 集合可以作为 org.quartz.JobDataMap 内部的参数传递吗?
- html - 文本对齐问题 - H4 内容显示在图像右侧
- amazon-web-services - 找不到数据库驱动程序:用于 RDS postgres 连接-Liquibase 的 org.postgresql.Driver
- c# - 如何使用复选框将 datagridview 导出到 Excel
- python - ISSUE ON NOT NULL 约束失败:accounts_user.course_id
- node.js - Sequelize hasMany 关联不起作用
- wpf - Appium 找不到折叠的元素
- ros - rosbag play(和 rqt_bag)和 rosbag.Bag 的 read_messages() 使用的时间戳不同