{"id":22729253,"url":"https://github.com/freddez/pg-dump-filter","last_synced_at":"2026-04-13T08:31:03.782Z","repository":{"id":77441875,"uuid":"112479033","full_name":"freddez/pg-dump-filter","owner":"freddez","description":"Filter tables from PostgreSQL dump","archived":false,"fork":false,"pushed_at":"2018-05-23T14:22:16.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T10:30:39.775Z","etag":null,"topics":["dump","extraction","filter","postgresql","table","tool"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freddez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2017-11-29T13:31:27.000Z","updated_at":"2022-04-05T16:54:53.000Z","dependencies_parsed_at":"2023-02-26T10:45:42.815Z","dependency_job_id":null,"html_url":"https://github.com/freddez/pg-dump-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freddez/pg-dump-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddez%2Fpg-dump-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddez%2Fpg-dump-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddez%2Fpg-dump-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddez%2Fpg-dump-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freddez","download_url":"https://codeload.github.com/freddez/pg-dump-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddez%2Fpg-dump-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dump","extraction","filter","postgresql","table","tool"],"created_at":"2024-12-10T18:09:16.441Z","updated_at":"2026-04-13T08:31:03.764Z","avatar_url":"https://github.com/freddez.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"pg-dump-filter\n==============\n\n`pg-dump-filter` is a tool that filters tables from a regular\nPostgreSQL dump file. It could be used to reload some tables from a\ndump in living instance, or to ignore others while creating a test\nenvironment.\n\nInstall\n-------\n\nThis tool is written in [Rust language](https://www.rust-lang.org/). \nInstall it, then run:\n\n  cargo install\n\nUsage\n-----\n\n    Usage: pg-dump-filter [options]\n\n    Options:\n        -t, --table NAME    output only tables matching NAME\n        -T, --exclude-table NAME\n                            no not output tables matching NAME\n        -c, --copy-only     output only COPY FROM statements\n        -r, --truncate      empty tables before COPY FROM statements\n        -h, --help          print this help menu\n\nExamples\n--------\n\nTo reload *pool* and *customer* tables datas to an existing database :\n\n    pg-dump-filter -cr -t \"pool|customer\" \u003c dump.sql | psql mydatabase\n    \nTo load a complete dump excluding *log* datas :\n\n    pg-dump-filter -T log \u003c dump.sql | psql mydatabase\n\nImportant notice\n----------------\n\nTables arguments folows the [regex rust library\nsyntax](https://docs.rs/regex/0.2.2/regex/#syntax). For example the\nargument:\n\n    -t \"pool|customer\"\n\nmatches all `*pool*` and `*customer*` table names. If you want an\nexact match, you have to type:\n\n    -t \"^pool$|^customer$\"`\n    \nBe warned.\n\nI've written this tool for personal needs. If you find it useful,\ndon't hesitate to send me some remarks for improvements requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreddez%2Fpg-dump-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreddez%2Fpg-dump-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreddez%2Fpg-dump-filter/lists"}