public.orders from an application PostgreSQL database into
analytics.orders_live in a reporting PostgreSQL database.
Before you begin
Have source and destination PostgreSQL credentials ready. The source user needs read access topublic.orders; the destination user needs write access to
analytics.orders_live.
1. Create connections and pipeline
- Open Connections and create/test a PostgreSQL Source connection.
- Create/test a PostgreSQL Destination connection.
- Open Data Pipelines, click New Pipeline, enter a name, select the source connection, and create the pipeline.
- Open the new pipeline. It opens in the tabbed pipeline workspace.
2. Configure Source
- Open Source.
- Click Test connection.
- Click Discover catalog.
- Enable
public.orders. - Keep Full table for the first run.
- Click Preview and inspect the rows.
- Click Save stream settings.
3. Add a destination
- Open Destinations.
- Click Add destination.
- Choose the destination connection, enter a display name, and set the target
schema to
analytics. - Click Save destination.
4. Create and publish a transformation
- Open Transformations and select the new destination.
- Click New transformation.
- Enter a name, stable key, output model, and select
public.ordersas input. - Use this SQL:
- Click Save draft.
- Click Validate draft.
- Click Preview output and inspect the result.
- Click Publish revision and confirm.
5. Assign the output target
- Return to Destinations and open the destination.
- Under Published output targets, set the table to
analytics.orders_live. - Set the Upsert key to
id. - Click Create or verify destination table when appropriate, then Save destination.
6. Validate and run
- Open Overview.
- Click Validate pipeline and resolve any incomplete readiness check.
- Click Run all in the header.
- Open Runs, select the execution, and confirm the destination, published revision, rows written, duration, and success status.