Skip to content

[BUG] Nested Materialized View Support (Dependency) #60

@MarkEnverus

Description

@MarkEnverus

I have a materialized view that has another materialized view inside of it

job_success_history_by_today => references => job_success_history_by_day

When I make a change to job_success_history_by_day - pg-diff tries to DROP the view which is can't since its referenced by job_success_history_by_today.

DROP MATERIALIZED VIEW IF EXISTS "public"."job_success_history_by_day";
CREATE MATERIALIZED VIEW IF NOT EXISTS "public"."job_success_history_by_day" AS SELECT nomadjobname,

Can pg-diff detect the dependency and do an ALTER if the view exists?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions