{"id":17292831,"url":"https://github.com/lesovsky/pg_filedump_pretty","last_synced_at":"2025-03-26T19:23:01.146Z","repository":{"id":69264956,"uuid":"163109012","full_name":"lesovsky/pg_filedump_pretty","owner":"lesovsky","description":"pg_filedump_pretty is a wrapper for pg_filedump, which simplifies data recovery process from Postgres data files","archived":false,"fork":false,"pushed_at":"2018-12-26T08:23:47.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T01:01:52.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lesovsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-25T20:14:25.000Z","updated_at":"2020-07-22T04:11:27.000Z","dependencies_parsed_at":"2023-09-15T11:51:40.014Z","dependency_job_id":null,"html_url":"https://github.com/lesovsky/pg_filedump_pretty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpg_filedump_pretty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpg_filedump_pretty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpg_filedump_pretty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpg_filedump_pretty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesovsky","download_url":"https://codeload.github.com/lesovsky/pg_filedump_pretty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245719191,"owners_count":20661220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T10:44:29.980Z","updated_at":"2025-03-26T19:23:01.128Z","avatar_url":"https://github.com/lesovsky.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_filedump_pretty\npg_filedump_pretty is a [pg_filedump](https://wiki.postgresql.org/wiki/Pg_filedump) wrapper which simplifies data recovery process from Postgres data files\n\n## pg_filedump advantages\n- dump tables content when Postgres is offline and unable to start\n- dump live and dead tuples\n- dump TOASTed values\n\n## pg_filedump drawbacks\n- can't list databases and tables - before dump you need to know the schema and exact data files \n- can't translate databases' oids to names - you can see numeric OIDs, but names are more useful\n- can't automatically translates oids to tables and recover data - you neen to do some manual steps before starting recovery\n- doesn't support numeric data type - yes, but it's not look impossibe, just need to write a patch to pg_filedump\n- has it's own names for postgres data types (eg. `bool` instead of `boolean`), it's confusing sometimes.\n\n## Why pg_filedump_pretty?\n- wish to automate the manual work such as resolving oid to names, translating columns and their types, dump many tables, etc\n- under the hood `pg_filedump_pretty` uses `pg_filedump` with `-t` and `-o` flags (dump TOASTed values and do not dump dead tuples). Original `pg_filedump` has additional paramaters that may be useful in some circumstances (see built-in help) \n\n## Why bash?\n- need quick (and dirty) solution, have no time to make beautiful tool\n- all that stuff could be implemented in original pg_filedump\n- have no time to propose patches to original pg_filedump\n\n## Disclaimer\n**No warranties. At all. Use at your own risk.**\n\nNeither `pg_filedump_pretty`, nor `pg_filedump` are not the silver bullets. There may be different reasons of data corruption and it is not possible to cover all cases. If `pg_filedump_pretty` or `pg_filedump` don't recover your data, it isn't their bug, it just you have a bad day.\n\n## pg_filedump/pg_filedump_pretty installation\n```\nsudo apt-get update\nsudo apt-get install git gcc make postgresql-server-dev-11\ngit clone git://git.postgresql.org/git/pg_filedump.git\ncd pg_filedump\nmake\nmake install\ncd ..\ngit clone https://github.com/lesovsky/pg_filedump_pretty\ncd pg_filedump_pretty/\n./pg_filedump_pretty.sh --help\n```\nSee `pg_filedump_pretty` built-in help for examples.\n\n## Good luck.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesovsky%2Fpg_filedump_pretty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesovsky%2Fpg_filedump_pretty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesovsky%2Fpg_filedump_pretty/lists"}