Skip to content

Add support for: EXCLUDE COLUMNS from PostgreSQL sources #762

@bobbyiliev

Description

@bobbyiliev

Feature request

Materialize now supports excluding specific columns when ingesting data from PostgreSQL sources. This feature allows you to:

  • Skip columns with unsupported data types
  • Reduce hydration times by ignoring unnecessary columns

Example

Suppose you have an upstream PostgreSQL table t, with columns a and b. You can exclude column a during ingestion:

CREATE SOURCE mz_source
FROM POSTGRES CONNECTION pg_conn (PUBLICATION 'mz_source', EXCLUDE COLUMNS (t.a))
FOR ALL TABLES;

To validate that column a was excluded:

SELECT * FROM t; -- Will return only one column, b

For more information and additional examples, see our PostgresQL source documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions