1
0
mirror of synced 2025-12-20 10:32:35 -05:00
Files
airbyte/airbyte-integrations/connectors/source-postgres/integration_tests/seed.sql
2023-01-04 09:08:43 +00:00

37 lines
502 B
SQL

ALTER ROLE postgres WITH REPLICATION;
CREATE
TABLE
id_and_name(
id INTEGER,
name VARCHAR(200)
);
INSERT
INTO
id_and_name(
id,
name
)
VALUES(
1,
'picard'
),
(
2,
'crusher'
),
(
3,
'vash'
);
SELECT
pg_create_logical_replication_slot(
'debezium_slot',
'pgoutput'
);
CREATE
PUBLICATION publication FOR ALL TABLES;