postgres drop table后会删除物理文件
来源:互联网 发布:matlab 无标度网络 编辑:程序博客网 时间:2024/05/23 18:33
test=> select pg_relation_filepath('test');
pg_relation_filepath
----------------------
base/16384/16394
(1 row)
[postgres9.6@db 16384]$ pwd
/home/postgres9.6/data/base/16384
[postgres9.6@db 16384]$ ll 16394
-rw------- 1 postgres9.6 postgres 8192 Feb 6 11:46 16394
test=> drop table test;
DROP TABLE
[postgres9.6@db 16384]$ pwd
/home/postgres9.6/data/base/16384
[postgres9.6@db 16384]$ ll 16394
-rw------- 1 postgres9.6 postgres 0 Feb 6 11:48 16394
过一会再查询:
[postgres9.6@db 16384]$ ll 16394
ls: cannot access 16394: No such file or directory
pg_relation_filepath
----------------------
base/16384/16394
(1 row)
[postgres9.6@db 16384]$ pwd
/home/postgres9.6/data/base/16384
[postgres9.6@db 16384]$ ll 16394
-rw------- 1 postgres9.6 postgres 8192 Feb 6 11:46 16394
test=> drop table test;
DROP TABLE
[postgres9.6@db 16384]$ pwd
/home/postgres9.6/data/base/16384
[postgres9.6@db 16384]$ ll 16394
-rw------- 1 postgres9.6 postgres 0 Feb 6 11:48 16394
过一会再查询:
[postgres9.6@db 16384]$ ll 16394
ls: cannot access 16394: No such file or directory
阅读全文
0 0
- postgres drop table后会删除物理文件
- datafile 物理文件被删除后
- Oracle Drop表并未直接删除 drop table xx purge
- Oracle Drop表并未直接删除 drop table xx purge
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- SQL---DDL---删除表DROP TABLE语句
- 恢复被drop table删除的表
- Postgresql之无法删除表(drop table)
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- Mysql命令drop table:删除数据表
- MySQL命令drop table:删除数据表
- SQL中drop table语句删除数据表
- mysql:sql drop table (删除表)
- mysql删除大表更快的drop table办法
- Oracle12C:drop table后,恢复表数据
- 20170914_字符串中找出最长的连续数字串
- C的文件IO函数
- SPOJ
- TCP_服务端
- 周中记录--2017.9.14
- postgres drop table后会删除物理文件
- if语句与流程控制语句
- leveldb:VersionSet
- 【洛谷2243】电路维修
- TCP 客户端
- 基于SpringMVC的Ajax
- js阻止默认行为
- HDU
- 应对分布式缓存宕机的方案