openGauss每日一练第7天 | 模式的基本管理
openGauss 每日一练第 7 天打卡,我来了!又可以学习,真开心~
学习
今天第 7 课,学习 openGauss 表空间!
表空间用于管理数据对象,与磁盘上的一个。
课后作业打卡
1.创建表空间,表空间tspc1使用相对路径指定所在目录,表空间tspc2指定owner为Lucy
1 | create tablespace tspc1 relative location 'tablespace/tablespace1'; |

2.在表空间tspc1中建表,并使用视图pg_tables查看信息
1 | create table lucifer(id int) tablespace tspc1; |

3.重命名tspc1,修改tspc2的用户为Lily,使用\db查看表空间信息
1 | alter tablespace tspc1 rename to tspc3; |


4.删除表空间
1 | drop table lucifer; |

写在最后
今天的作业打卡结束!🎉
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 三笠の博客!