-
Notifications
You must be signed in to change notification settings - Fork 453
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
pgcompat: add some missing columns for Metaplane #27155
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pH14
changed the title
WIP: more pgcompat
pgcompat: add in May 17, 2024
pg_user
table + some missing columns
For compatibility with Metaplane.
For Metaplane compatibility.
benesch
force-pushed
the
pgcompat-metaplane
branch
from
May 18, 2024 13:15
d8efb30
to
6fdffbc
Compare
benesch
changed the title
pgcompat: add in
pgcompat: add some missing columns for Metaplane
May 18, 2024
pg_user
table + some missing columns
I got excited about this. The |
benesch
approved these changes
May 18, 2024
benesch
added a commit
to benesch/materialize
that referenced
this pull request
May 18, 2024
For Metaplane compatibility. To bring our `pg_user`, `pg_roles`, and `pg_authid` views in line with PostgreSQL, this commit also refactors how `rolcanlogin` is derived. We now do something a little gross but that will work well in practice to derive `rolcanlogin` from whether a role name looks like an email address, instead of hardcoding `NULL`. This makes the distinction between `pg_user` and `pg_roles` more useful: the former contains only the roles for which `rolcanlogin` is true, while the latter contains all roles. Split out from MaterializeInc#27155. Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
5 tasks
Done in #27161. |
benesch
added a commit
to benesch/materialize
that referenced
this pull request
May 18, 2024
For Metaplane compatibility. To bring our `pg_user`, `pg_roles`, and `pg_authid` views in line with PostgreSQL, this commit also refactors how `rolcanlogin` is derived. We now do something a little gross but that will work well in practice to derive `rolcanlogin` from whether a role name looks like an email address, instead of hardcoding `NULL`. This makes the distinction between `pg_user` and `pg_roles` more useful: the former contains only the roles for which `rolcanlogin` is true, while the latter contains all roles. Split out from MaterializeInc#27155. Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Improvements to our Postgres compatibility story. More context: https://materializeinc.slack.com/archives/C073KLQ0QHM/p1715968613948499
Adds inMoved to sql: addpg_catalog.pg_user
pg_catalog.pg_user
view #27161.reltuples
column topg_catalog.pg_class
column_default
column toinformation_schema.columns
Tips for reviewer
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.