{"id":21997443,"url":"https://github.com/stephane-klein/postgresql-streaming-replication-playground","last_synced_at":"2026-05-06T03:31:54.661Z","repository":{"id":99040496,"uuid":"258985683","full_name":"stephane-klein/postgresql-streaming-replication-playground","owner":"stephane-klein","description":"PostgreSQL 12 streaming replication playground","archived":false,"fork":false,"pushed_at":"2020-04-26T12:57:53.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T16:36:31.606Z","etag":null,"topics":["docker","playground","postgresql","replication"],"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/stephane-klein.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":"2020-04-26T09:04:51.000Z","updated_at":"2020-04-26T17:49:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad864bf5-9f2f-4d2f-a5ef-414e6d8e1261","html_url":"https://github.com/stephane-klein/postgresql-streaming-replication-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephane-klein/postgresql-streaming-replication-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fpostgresql-streaming-replication-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fpostgresql-streaming-replication-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fpostgresql-streaming-replication-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fpostgresql-streaming-replication-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephane-klein","download_url":"https://codeload.github.com/stephane-klein/postgresql-streaming-replication-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fpostgresql-streaming-replication-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","playground","postgresql","replication"],"created_at":"2024-11-29T22:16:20.052Z","updated_at":"2026-05-06T03:31:54.637Z","avatar_url":"https://github.com/stephane-klein.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL 12 streaming replication playground\n\nPostgreSQL 12 [streaming replication](https://www.postgresql.org/docs/12/warm-standby.html#STREAMING-REPLICATION) playground, based on this documentation: [PostgreSQL : la streaming replication en 12](https://blog.capdata.fr/index.php/postgresql-la-streaming-replication-en-12/)\n\n```\n$ ./scripts/generate-self-signed-certificate.sh\n$ docker-compose up -d postgres1\n$ ./scripts/wait-service.sh postgres1 5432\n```\n\n```\n$ ./scripts/pg1/load-configuration.sh\n$ ./scripts/pg1/load-seed.sh\n$ ./scripts/pg1/insert-fixtures.sh\n```\n\n```\n$ ./scripts/pg2/prepare.sh\n```\n\n```\n$ docker-compose up -d postgres2\n```\n\n```\n$ ./scripts/pg2/query.sh\ncount\n-------\n    10\n$ ./scripts/pg1/insert-fixtures.sh\n$ ./scripts/pg2/query.sh\ncount\n-------\n    20\n```\n\nSteaming replication limitations:\n\n- It cannot perform selective replication or part of the database cannot be replicated.\n- It cannot replicate between two different major versions.\n- It cannot perform any writes in the standby server.\n- It cannot replicate between different platforms (for example, Linux and Windows)\n\nto go ahead this limitations, you can use PostgreSQL 12 logical replication.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fpostgresql-streaming-replication-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephane-klein%2Fpostgresql-streaming-replication-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fpostgresql-streaming-replication-playground/lists"}