1、pg_filedump:解锁PostgreSQL数据文件的隐藏价值孟令彬pg_filedump介绍01.堆表文件的内部布局02.解析文件03.CONTENTS使用方法04.最佳实践05.pg_filedump简介pg_filedump简介4Display formatted contents of a Display formatted contents of a PostgreSQL heap,index,or control filePostgreSQL heap,index,or control fileThis program is free software;you can redi
2、stribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;either version 2 of the License,or(at your option)any later version.pg_filedump简介5The most importantly function:Data Recovery堆表文件的内部布局堆表文件的内部布局7堆表文件的内部布局8解析文件解析数据文件10解析数据文件11解析数据文件12使用方法使用方法14场景:数据库异常关闭无法启动,需导出重要业务数据使用方法15为了方便展示,我们以恢复postgres数据库public模式下test表为例使用方法16使用方法17使用方法18使用方法19使用方法20使用方法21最佳实践最佳实践23 支持在数据库无法启动时,导出数据恢复到新实例中;支持恢复坏块中未损坏数据;支持恢复清理前的误删除数据;支持数据库常规的二十九种数据类型;支持解析索引,用处不大,索引损坏重建即可;支持解析控制文件,可用于特殊场景下的控制文件修复;未落盘数据可以通过WalMiner解析wal日志。THANKSTHANKShttps:/ PG ACE