{"id":20491721,"url":"https://github.com/dalibo/pg_dumpacl","last_synced_at":"2025-04-13T16:55:18.288Z","repository":{"id":91116663,"uuid":"117818477","full_name":"dalibo/pg_dumpacl","owner":"dalibo","description":"Tool for dumping database creation options","archived":false,"fork":false,"pushed_at":"2020-10-23T14:25:43.000Z","size":48,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-27T07:51:32.685Z","etag":null,"topics":["acl","dump","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalibo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-17T10:03:13.000Z","updated_at":"2023-05-08T13:34:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e0a834e-1651-4ec3-9043-b312f4a53497","html_url":"https://github.com/dalibo/pg_dumpacl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpg_dumpacl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpg_dumpacl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpg_dumpacl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpg_dumpacl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalibo","download_url":"https://codeload.github.com/dalibo/pg_dumpacl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750011,"owners_count":21155682,"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":["acl","dump","postgresql"],"created_at":"2024-11-15T17:25:41.207Z","updated_at":"2025-04-13T16:55:18.275Z","avatar_url":"https://github.com/dalibo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `pg_dumpacl` [![](https://circleci.com/gh/dalibo/pg_dumpacl.svg?style=shield)](https://circleci.com/gh/dalibo/pg_dumpacl)\n\nA tool to dump ACL per database, based on `pg_dump`\n\n``` console\n$ ./pg_dumpacl -d db0\n--\n-- Database creation\n--\n\nCREATE DATABASE \"db0\" WITH TEMPLATE = template0 OWNER = \"postgres\";\nREVOKE ALL ON DATABASE \"db0\" FROM PUBLIC;\nREVOKE ALL ON DATABASE \"db0\" FROM \"postgres\";\nGRANT ALL ON DATABASE \"db0\" TO \"postgres\";\nGRANT CONNECT,TEMPORARY ON DATABASE \"db0\" TO PUBLIC;\nGRANT CONNECT ON DATABASE \"db0\" TO \"dba\";\n```\n\n## Packaging\n\nUse `make rpms` to build RPM packages for PostgreSQL version that require it.\nAs of 2020Q4, supported versions that require pg_dumpacl are 9.5, 9.6 and 10.\n\nDefine `DIST` to `centos7` or `centos8`, to build RPM packages for CentOS/RHEL\n7 or 8, 7 being the default.\n\n## Installation\n\nEnable [Dalibo Labs YUM repository](http://yum.dalibo.org/labs/) and install\n`pg_dumpacl10` package or the variant for the version of Postgres installed.\n\n``` console\n# yum install -y https://yum.dalibo.org/labs/dalibo-labs-1-1.noarch.rpm\n# yum makecache fast\n# yum search pg_dumpacl\n=================== N/S matched: pg_dumpacl ================================\npg_dumpacl10.x86_64 : Tool for dumping database creation options\npg_dumpacl93.x86_64 : Tool for dumping database creation options\npg_dumpacl94.x86_64 : Tool for dumping database creation options\npg_dumpacl95.x86_64 : Tool for dumping database creation options\npg_dumpacl96.x86_64 : Tool for dumping database creation options\n#\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Fpg_dumpacl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalibo%2Fpg_dumpacl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Fpg_dumpacl/lists"}