Overview
Data requirements change as businesses grow. New teams, processes, and reporting needs often introduce tables that weren't part of the original data pipeline.
With Hevo, you don't need to manually recreate your pipeline every time a new table is introduced. When configured to include new tables, Hevo automatically detects the addition, maps its schema, and replicates the data to your destination.
Here's how this works with a PostgreSQL-to-Snowflake pipeline.
The Scenario
Consider a business that already replicates its customer and order data from PostgreSQL into Snowflake.
As its customer success team expands, it starts tracking support interactions separately. This includes details such as the communication channel, issue category, interaction status, and resolution time.
To capture this information, the engineering team introduces a new table in PostgreSQL: customer_support_interactions.
Rather than setting up another pipeline or manually creating the corresponding table in Snowflake, the team can rely on Hevo to bring this new data into the existing pipeline.
See It in Action
Step 1: Verify the Existing Tables
We start with an existing PostgreSQL-to-Snowflake pipeline replicating data from the tpch1g schema.
Before making any changes, let's verify that customer_support_interactions does not exist in either the source or destination.
PostgreSQL – Check whether the table exists
| 1 | SELECT table_name |
| 2 | FROM information_schema.tables |
| 3 | WHERE table_schema = 'tpch1g' |
| 4 | AND table_name = 'customer_support_interactions'; |
The query returns no records, confirming that the table does not exist in PostgreSQL.
Text version
PostgreSQL (DbVisualizer): checking whether customer_support_interactions exists in schema tpch1g
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'tpch1g'
AND table_name = 'customer_support_interactions';
Result: 0 rows ("Empty result set fetched"). The table does not exist in the source.
| Time | Status | Command | Exec (s) | Rows | Message |
|---|---|---|---|---|---|
| 14:23:11 | STARTED | Executing for: 'PostgreSQL - SE DEMO/tpch_demo_db' | |||
| 14:23:11 | SUCCESS | SELECT | 0.310 | 0 | Empty result set fetched |
| 14:23:12 | FINISHED | 0.310 | 0 | Success: 1 |
Snowflake – Check whether the destination table exists
| 1 | SELECT table_name |
| 2 | FROM YOUR_DATABASE.INFORMATION_SCHEMA.TABLES |
| 3 | WHERE TABLE_SCHEMA = 'YOUR_SCHEMA' |
| 4 | AND TABLE_NAME = 'CUSTOMER_SUPPORT_INTERACTIONS'; |
This query also returns no records, confirming that the corresponding table is not yet present in Snowflake.
Text version
Snowflake: checking whether CUSTOMER_SUPPORT_INTERACTIONS exists in the destination schema
SELECT table_name
FROM SOLUTIONS_ENGINEERING_POC.INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'TPCHV2__TPCH1G'
AND TABLE_NAME = 'CUSTOMER_SUPPORT_INTERACTIONS';
Result: 0 rows, "Query produced no results" (564 ms). The table does not exist in Snowflake yet.
Step 2: Create the New Table in PostgreSQL
We now introduce the new table to capture customer support activity.
| 1 | CREATE TABLE tpch1g.customer_support_interactions ( |
| 2 | support_interaction_id BIGINT PRIMARY KEY, |
| 3 | c_custkey INTEGER NOT NULL, |
| 4 | interaction_channel VARCHAR(30), |
| 5 | issue_category VARCHAR(50), |
| 6 | interaction_status VARCHAR(20), |
| 7 | created_at TIMESTAMP, |
| 8 | resolution_minutes INTEGER |
| 9 | ); |
Step 3: Insert Sample Records
Next, we insert a few support interaction records into the new table.
| 1 | INSERT INTO tpch1g.customer_support_interactions ( |
| 2 | support_interaction_id, |
| 3 | c_custkey, |
| 4 | interaction_channel, |
| 5 | issue_category, |
| 6 | interaction_status, |
| 7 | created_at, |
| 8 | resolution_minutes |
| 9 | ) |
| 10 | VALUES |
| 11 | (900001, 1, 'Email', 'Billing', 'Resolved', |
| 12 | '2026-11-20 10:30:00', 45), |
| 13 | (900002, 2, 'Phone', 'Order Status', 'Open', |
| 14 | '2026-11-21 14:15:00', NULL), |
| 15 | (900003, 3, 'Chat', 'Product Query', 'Resolved', |
| 16 | '2026-11-22 09:45:00', 20), |
| 17 | (900004, 1, 'Email', 'Technical Issue', 'In Progress', |
| 18 | '2026-11-23 11:00:00', NULL); |
We can verify the inserted records:
| 1 | SELECT * |
| 2 | FROM tpch1g.customer_support_interactions |
| 3 | ORDER BY support_interaction_id; |
Text version
PostgreSQL (DbVisualizer): SELECT * FROM tpch1g.customer_support_interactions ORDER BY support_interaction_id;, 4 rows
| support_interaction_id | c_custkey | interaction_channel | issue_category | interaction_status | created_at | resolution_minutes |
|---|---|---|---|---|---|---|
| 900001 | 1 | Billing | Resolved | 2026-11-20 10:30:00 | 45 | |
| 900002 | 2 | Phone | Order Status | Open | 2026-11-21 14:15:00 | NULL |
| 900003 | 3 | Chat | Product Query | Resolved | 2026-11-22 09:45:00 | 20 |
| 900004 | 1 | Technical Issue | In Progress | 2026-11-23 11:00:00 | NULL |
The resolution_minutes values for rows 900001 (45) and 900003 (20) are cut off at the edge of the screenshot. They come from the INSERT statement above.
Step 4: Let Hevo Detect the New Table After the Next Incremental Sync
With the pipeline configured to include all schema changes at source, Hevo detects customer_support_interactions and maps its schema for replication after the first incremental run.
There is no need to manually select the new table in Hevo or create its corresponding table in Snowflake.
Text version
Hevo: pipeline #331 PGSql_SF (Amazon RDS PostgreSQL 17 → Snowflake_SEAcc_S), Status: Enabled, syncs daily at 12:53 UTC, Objects tab (showing 5 of 9 objects)
The new table customer_support_interactions appears automatically alongside the existing tables, with no manual selection.
| Object | Status | Database | Schema | Load Mode | Primary Key | Fields |
|---|---|---|---|---|---|---|
| customer | Active | tpch_demo_db | tpch1g | Merge | c_custkey | 9 |
| customer_support_interactions | Active | tpch_demo_db | tpch1g | Merge | support_interaction_id | 7 |
| lineitem | Active | tpch_demo_db | tpch1g | Merge | l_orderkey, l_linenumber | 16 |
| nation | Active | tpch_demo_db | tpch1g | Merge | n_nationkey | 4 |
| orders | Active | tpch_demo_db | tpch1g | Merge | o_orderkey | 9 |
Step 5: Verify the New Table in Snowflake
Once the next scheduled sync completes, we can verify that Hevo has created the corresponding destination table and replicated its data.
Check the destination table structure:
| 1 | DESC TABLE YOUR_DATABASE.YOUR_SCHEMA.CUSTOMER_SUPPORT_INTERACTIONS; |
Text version
Snowflake: DESC TABLE ...CUSTOMER_SUPPORT_INTERACTIONS;, 12 rows, 66 ms (the 7 source columns below plus 5 Hevo metadata columns not visible in the screenshot)
| # | name | type | kind | null? | primary key | unique key |
|---|---|---|---|---|---|---|
| 1 | SUPPORT_INTERACTION_ID | NUMBER(38,0) | COLUMN | Y | Y | N |
| 2 | C_CUSTKEY | NUMBER(38,0) | COLUMN | Y | N | N |
| 3 | INTERACTION_CHANNEL | VARCHAR(120) | COLUMN | Y | N | N |
| 4 | ISSUE_CATEGORY | VARCHAR(200) | COLUMN | Y | N | N |
| 5 | INTERACTION_STATUS | VARCHAR(80) | COLUMN | Y | N | N |
| 6 | CREATED_AT | TIMESTAMP_NTZ(9) | COLUMN | Y | N | N |
| 7 | RESOLUTION_MINUTES | NUMBER(38,0) | COLUMN | Y | N | N |
Default and check are null for every column.
Verify the replicated records:
| 1 | SELECT * |
| 2 | FROM YOUR_DATABASE.YOUR_SCHEMA.CUSTOMER_SUPPORT_INTERACTIONS |
| 3 | ORDER BY SUPPORT_INTERACTION_ID; |
You can see the new table and the records available in your warehouse alongside your existing customer and order data.
Text version
Snowflake: SELECT * FROM ...CUSTOMER_SUPPORT_INTERACTIONS ORDER BY SUPPORT_INTERACTION_ID;, 4 rows (378 ms)
| SUPPORT_INTERACTION_ID | C_CUSTKEY | INTERACTION_CHANNEL | ISSUE_CATEGORY | INTERACTION_STATUS |
|---|---|---|---|---|
| 900001 | 1 | Billing | Resolved | |
| 900002 | 2 | Phone | Order Status | Open |
| 900003 | 3 | Chat | Product Query | Resolved |
| 900004 | 1 | Technical Issue | In Progress |
The remaining columns (CREATED_AT, RESOLUTION_MINUTES and Hevo metadata) are outside the visible area of the screenshot. The rows match the four records inserted in PostgreSQL.
A Note on PostgreSQL Publications
For PostgreSQL logical replication, ensure that the publication used by the pipeline is configured for All Tables (FOR ALL TABLES). This allows newly created tables to be included in the publication automatically.
Conclusion
As business requirements evolve, your data pipeline should be able to keep up.
Hevo automatically detects and maps newly added tables when the pipeline is configured to include them, making it easier to bring additional source data into Snowflake without manually creating destination tables or setting up separate pipelines.
With Hevo, your existing data pipeline can grow alongside your business.