{"id":14069544,"url":"https://github.com/hartmut-co-uk/pg-repack-docker","last_synced_at":"2025-03-25T00:31:17.132Z","repository":{"id":43495806,"uuid":"158568097","full_name":"hartmut-co-uk/pg-repack-docker","owner":"hartmut-co-uk","description":"Docker image for 'pg_repack' (PostgreSQL extension) to use 'client-side' to run/invoke the actual repack functionality for a PostgreSQL database with the extension installed.","archived":false,"fork":false,"pushed_at":"2023-12-17T22:29:41.000Z","size":11,"stargazers_count":44,"open_issues_count":1,"forks_count":23,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T05:29:07.512Z","etag":null,"topics":["docker-image","maintenance","postgres","postgresql","postgresql-extension","postgresql-tool"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hartmut-co-uk.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}},"created_at":"2018-11-21T15:22:19.000Z","updated_at":"2024-12-27T22:26:41.000Z","dependencies_parsed_at":"2024-08-13T07:15:26.874Z","dependency_job_id":"a21b82c1-7483-4d62-9e00-d15d9be4d91a","html_url":"https://github.com/hartmut-co-uk/pg-repack-docker","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartmut-co-uk%2Fpg-repack-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartmut-co-uk%2Fpg-repack-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartmut-co-uk%2Fpg-repack-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartmut-co-uk%2Fpg-repack-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartmut-co-uk","download_url":"https://codeload.github.com/hartmut-co-uk/pg-repack-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377915,"owners_count":20605374,"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":["docker-image","maintenance","postgres","postgresql","postgresql-extension","postgresql-tool"],"created_at":"2024-08-13T07:07:02.271Z","updated_at":"2025-03-25T00:31:16.820Z","avatar_url":"https://github.com/hartmut-co-uk.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# pg-repack-docker\n\nDocker image with 'pg_repack' (PostgreSQL extension) installed, can be run natively - or be used 'client-side' to run/invoke pg_repack functionality \nfor a PostgreSQL database with the extension installed.\n\nReference: https://github.com/reorg/pg_repack\n\n## versions\n\nThis images follows the pg_repack releases + compatibility with PostgreSQL.\n\n| postgres | pg_repack |\n|----------|-----------|\n| 16       | 1.5.0     |\n| 15       | 1.4.8     |\n| 14       | 1.4.7     |\n| 13       | 1.4.6     |\n| 12       | 1.4.5     |\n| 11       | 1.4.4     |\n| 10       | 1.4.3     |\n\n\n## Dockerhub\n\nhttps://hub.docker.com/r/hartmutcouk/pg-repack-docker/\n\n\n### build\n\n```\ndocker build . -t pg-repack-docker\n```\n    \n### run postgres\n\nThis image extends the official [postgres docker image](https://hub.docker.com/_/postgres/) - so you can start a container with postgres following the official image.   \ne.g. pg16 (+pg_repack 1.5.0): \n    \n```\ndocker run -e POSTGRES_PASSWORD=1234 --name pg16 -p 5432:5432 -d hartmutcouk/pg-repack-docker:1.5.0\n```\n\npsql from local:\n```\nPGPASSWORD=supersecure psql -h localhost -U postgres\n```\n\npsql via docker:\n```\ndocker run -e PGPASSWORD=supersecure -it --rm --network host hartmutcouk/pg-repack-docker:1.5.0 psql -h localhost -U postgres\n```\n\n\n### exec pg_repack against host network\n    \n```\ndocker run -e PGPASSWORD=1234 -it --rm --network host hartmutcouk/pg-repack-docker:1.5.0 pg_repack -h localhost -U dbroot --dbname=dbname --dry-run --table=table1 --only-indexes --no-superuser-check\n```\n\nNotes:\n- uses host network: `--network host`\n- passing `PGPASSWORD` via env variable avoids password prompt (to e.g. exec via script/cron)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartmut-co-uk%2Fpg-repack-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartmut-co-uk%2Fpg-repack-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartmut-co-uk%2Fpg-repack-docker/lists"}