drop database 会立即释放磁盘空间么 ?
来源:互联网 发布:linux的启动过程详解 编辑:程序博客网 时间:2024/06/01 23:36
drop database 会立即释放磁盘空间么 ?
DROP DATABASE drops a database. It removes the catalog entries for the database and deletes the directory containing the data. It can only be executed by the database owner.
由此可见,可以立即 释放磁盘空间。 与 DML等 语句不同,后者需要 清理进程。
[postgres@postgres ~] $df -hFilesystem Size Used Avail Use% Mounted on/dev/sda2 1.1T 609G 401G 61% /devtmpfs 63G 0 63G 0% /devtmpfs 63G 4.0K 63G 1% /dev/shmtmpfs 63G 49M 63G 1% /runtmpfs 63G 0 63G 0% /sys/fs/cgroup/dev/sda1 4.7G 97M 4.4G 3% /boottmpfs 13G 0 13G 0% /run/user/0postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+-------------+-------------+----------------------- benchmark | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres tmp | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | (5 rows)postgres=# drop database benchmark postgres-# ;DROP DATABASE[postgres@postgres ~] $df -h Filesystem Size Used Avail Use% Mounted on/dev/sda2 1.1T 491G 519G 49% /devtmpfs 63G 0 63G 0% /devtmpfs 63G 4.0K 63G 1% /dev/shmtmpfs 63G 49M 63G 1% /runtmpfs 63G 0 63G 0% /sys/fs/cgroup/dev/sda1 4.7G 97M 4.4G 3% /boottmpfs 13G 0 13G 0% /run/user/0
/dev/sda2 由 61%变为49%
By 狮子歌歌
阅读全文
0 0
- drop database 会立即释放磁盘空间么 ?
- drop database
- drop database
- 磁盘空间的释放
- Linux释放磁盘空间
- linux释放磁盘空间
- 释放Linux磁盘空间方法
- 释放Xcode占用磁盘空间
- linux磁盘空间不释放
- drop database 删除数据库
- oracle Drop Database
- DROP DATABASE ORA-01504
- linux 下drop database
- mac os x 释放磁盘空间
- Linux磁盘空间不释放问题
- 使用drop database删除数据库
- 手工删除数据库 drop database
- drop a database
- Go IP 地址字符串整数/string int 相互转换
- SpringBoot集成Redis
- 关于flush操作
- Scrapy可视化管理软件SpiderKeeper
- c#下不同命名空间的引用(一个project使用另外一个project的名称空间)
- drop database 会立即释放磁盘空间么 ?
- 教育类虚拟仿真参考的一个框架
- js实现文本的复制粘贴的功能
- Kotlin(2.12)代理
- Python安装
- 不忘初心 信用卡行业服务升级迎来“千人千面”时代
- Mac电脑上怎么彻底卸载mysql
- 【jQuery】jQuery官方基本教程的学习笔记3-动画效果Effects
- lxml库学习