Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarkEnverus opened this issue Sep 5, 2024 · 0 comments
Open

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

MarkEnverus opened this issue Sep 5, 2024 · 0 comments

Comments

@MarkEnverus
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant