pg数据库表存放在哪里_在Greenplum数据库中,临时表存储在哪里?

在Greenplum数据库中,临时表存储在创建它们的数据库的临时模式下,该模式只在会话期间有效。当会话结束,这些临时表将被自动删除。用户可以使用`d`和`dn`命令查看当前存在的表和模式来验证这一点。
摘要由CSDN通过智能技术生成

Greenplum中的临时表存储在创建它们的数据库中,但存储在临时模式中,该模式在创建表的会话期间有效。

[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=#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值