{"id":15204310,"url":"https://github.com/figma/pglogrepl","last_synced_at":"2026-01-14T21:26:05.635Z","repository":{"id":57502652,"uuid":"228500954","full_name":"figma/pglogrepl","owner":"figma","description":"PostgreSQL logical replication library for Go.","archived":false,"fork":true,"pushed_at":"2021-10-21T22:06:32.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T22:35:18.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jackc/pglogrepl","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/figma.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}},"created_at":"2019-12-17T00:36:51.000Z","updated_at":"2021-10-21T22:06:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/figma/pglogrepl","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/figma/pglogrepl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figma%2Fpglogrepl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figma%2Fpglogrepl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figma%2Fpglogrepl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figma%2Fpglogrepl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/figma","download_url":"https://codeload.github.com/figma/pglogrepl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figma%2Fpglogrepl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-09-28T05:41:31.788Z","updated_at":"2026-01-14T21:26:05.573Z","avatar_url":"https://github.com/figma.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://godoc.org/github.com/jackc/pglogrepl?status.svg)](https://godoc.org/github.com/jackc/pglogrepl)\n[![Build Status](https://travis-ci.org/jackc/pglogrepl.svg)](https://travis-ci.org/jackc/pglogrepl)\n\n# pglogrepl\n\npglogrepl is a Go package for PostgreSQL logical replication.\n\npglogrepl uses package github.com/jackc/pgconn as its underlying PostgreSQL connection.\n\nProper use of this package requires understanding the underlying PostgreSQL concepts. See\nhttps://www.postgresql.org/docs/current/protocol-replication.html.\n\n## Example\n\nIn `example/pglogrepl_demo`, there is an example demo program that connects to a database and logs all messages sent over logical replication.\n\n## Testing\n\nTesting requires a user with replication permission, a database to replicate, access allowed in `pg_hba.conf`, and\nlogical replication enabled in `postgresql.conf`.\n\nCreate a database:\n\n```\ncreate database pglogrepl;\n```\n\nCreate a user:\n\n```\ncreate user pglogrepl with replication password 'secret';\n```\n\nAdd a replication line to your pg_hba.conf:\n\n```\nhost replication pglogrepl 127.0.0.1/32 md5\n```\n\nChange the following settings in your postgresql.conf:\n\n```\nwal_level=logical\nmax_wal_senders=5\nmax_replication_slots=5\n```\n\nTo run the tests set `PGLOGREPL_TEST_CONN_STRING` environment variable with a replication connection string (URL or DSN).\n\nExample:\n\n```\nPGLOGREPL_TEST_CONN_STRING=postgres://pglogrepl:secret@127.0.0.1/pglogrepl?replication=database go test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigma%2Fpglogrepl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffigma%2Fpglogrepl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigma%2Fpglogrepl/lists"}