Skip to content

Conversation

@SangJunBak
Copy link
Contributor

By having a system variable as an input to a addition/retraction, we were able to get in a state of getting invalid retractions by flipping the system variable. We circumvent this by removing the system variable from the equation.

This should be okay since by default, the login and superuser attribute in Cloud should be null, effectively doing the same thing as the code before.

Motivation

  • This PR fixes a recognized bug.

fixes https://github.com/MaterializeInc/database-issues/issues/10042

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

@SangJunBak SangJunBak force-pushed the jun/fix-mz-roles-invalid-retraction branch 2 times, most recently from 4246461 to 24d31b6 Compare January 28, 2026 01:49
By having a system variable as an input to a addition/retraction, we were able to get in a state of getting invalid retractions by flipping the system variable. We circumvent this by removing the system variable from the equation. 

This should be okay since by default, the `login` and `superuser` attribute in Cloud should be null, effectively doing the same thing as the code before.
@SangJunBak SangJunBak force-pushed the jun/fix-mz-roles-invalid-retraction branch from 24d31b6 to c6042c3 Compare January 28, 2026 01:49
@SangJunBak SangJunBak marked this pull request as ready for review January 28, 2026 02:31
@SangJunBak SangJunBak requested a review from a team as a code owner January 28, 2026 02:31
@SangJunBak SangJunBak requested a review from aljoscha January 28, 2026 02:31
SELECT usename, usesysid, usecreatedb, usesuper, userepl, usebypassrls, passwd, valuntil, useconfig FROM pg_user;
----
materialize@foocorp.io 20190 false NULL false false NULL NULL NULL
mz_support 16662 false true false false NULL NULL NULL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might it become a problem that this now shows up here?

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

Successfully merging this pull request may close these issues.

2 participants