apecloud / myduckserver

MySQL & Postgres Analytics, Reimagined
184 stars 8 forks source link

Zero-ETL support for PostgreSQL #119

Open TianyuZhang1214 opened 2 weeks ago

TianyuZhang1214 commented 2 weeks ago

INSTALL postgres_scanner; LOAD postgres_scanner; ATTACH 'dbname=postgres user=postgres password=root host=127.0.0.1 port=15432' AS pg_postgres (TYPE POSTGRES);

BEGIN; COPY FROM DATABASE pg_postgres TO postgres; -- store the result into a variable of code(go, shell). SELECT * FROM postgres_query('pg_postgres', 'SELECT pg_current_wal_lsn()'); COMMIT;


- [ ] **Delta Synchronization**: Schedule this task after PR #141 is completed.