# pg_replicate - Postgres의 복제를 위한 도구

> Clean Markdown view of GeekNews topic #16300. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=16300](https://news.hada.io/topic?id=16300)
- GeekNews Markdown: [https://news.hada.io/topic/16300.md](https://news.hada.io/topic/16300.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-08-13T10:03:02+09:00
- Updated: 2024-08-13T10:03:02+09:00
- Original source: [github.com/supabase](https://github.com/supabase/pg_replicate)
- Points: 11
- Comments: 0

## Summary

Postgres의 데이터를 다른 시스템으로 지속적으로 복사할 수 있는 데이터 파이프라인을 구축할 수 있게 해주는 도구입니다. Logical Streaming Replication Protocol 위에 추상화를 구축하여 하위 수준에 대한 걱정 없이 쉽게 사용할 수 있습니다. BigQuery, DuckDB, MotherDuck와 같은 다양한 Sink를 지원하며, Snowflake와 ClickHouse Sink도 곧 구현될 예정입니다.

## Topic Body

- Postgres에서 다른 시스템으로 데이터를 지속적으로 복사하는 데이터 파이프라인 구축   
- Postgres 의 "Logical Streaming Replication Protocol" 위에 추상화를 구축하여 하위수준에 대한 걱정 없이 이용 가능   
- 로드맵   
  - BigQuery, DuckDB, MotherDuck Sink 는 구현(Duck 쪽은 배치 파이프라인 버전으로 재구현 예정)  
  - Snowflake, ClickHouse Sink 는 구현 예정  
- Rust Crate로 개발되어 cargo로 실행 가능   
  `cargo run --example stdout -- --db-host localhost --db-port 5432 --db-name postgres --db-username postgres --db-password password cdc my_publication stdout_slot`

## Comments



_No public comments on this page._
