temp-tables - 临时表存储在 GreenPlum 数据库中的什么位置?
解决方案
Greenplum 中的临时表存储在创建它们的数据库中,但是在一个临时模式中,该模式在创建表的会话期间存在。
IE
[gpadmin@mdw:~] $ createdb temp
[gpadmin@mdw:~] $ psql temp
temp=# create temporary table test_temp(a int) distributed by (a);
CREATE TABLE
Time: 50.516 ms
temp=# \d
List of relations
Schema | Name | Type | Owner | Storage
------------+-----------+-------+---------+---------
pg_temp_11 | test_temp | table | gpadmin | heap
(1 row)
temp=# \dn
List of schemas
Name | Owner
--------------------+---------
gp_toolkit | gpadmin
information_schema | gpadmin
pg_aoseg | gpadmin
pg_bitmapindex | gpadmin
pg_catalog | gpadmin
pg_temp_11 | gpadmin
pg_toast | gpadmin
pg_toast_temp_11 | gpadmin
public | gpadmin
(9 rows)
temp=#
temp=# \q
[gpadmin@mdw:~] $ psql temp
Timing is on.
psql (8.3.23)
Type "help" for help.
temp=# \d
No relations found.
temp=# \dn
List of schemas
Name | Owner
--------------------+---------
gp_toolkit | gpadmin
information_schema | gpadmin
pg_aoseg | gpadmin
pg_bitmapindex | gpadmin
pg_catalog | gpadmin
pg_toast | gpadmin
public | gpadmin
(7 rows)
temp=#
这回答了你的问题了吗?
推荐阅读
- python - 熊猫:用组的模式填充na
- java - 片段底部导航栏可点击一次选中项
- pytorch - pytorch:位置密集连接(无权重共享)
- excel - 如何在 VBA 代码中引用特定的单元格值?
- python - 需要故障排除:TypeError:只能将元组(不是“str”)连接到元组
- swift - Firebase Firestore:来自自定义结构的编码器不起作用
- animation - 如何让花茎随着 After Effects 中的音乐振动(如何为波形制作动画,而不仅仅是幅度)
- html - 如何在单击按钮上的图像地图位置添加值
- javascript - 无法反序列化 text/html json 响应
- xamarin.forms - DevOps App Center 分发任务给出未经授权的错误