Skip to content

Include unique constraints metadata in sys.objects view#3658

Merged
jsudrik merged 3 commits intobabelfish-for-postgresql:BABEL_5_X_DEVfrom
amazon-aurora:JIRA-BABEL-5712
Apr 8, 2025
Merged

Include unique constraints metadata in sys.objects view#3658
jsudrik merged 3 commits intobabelfish-for-postgresql:BABEL_5_X_DEVfrom
amazon-aurora:JIRA-BABEL-5712

Conversation

@roshan0708
Copy link
Copy Markdown
Contributor

@roshan0708 roshan0708 commented Apr 6, 2025

Description

This commit rectifies the type check for fetching metadata of both primary key and unique constraints from sys.key_constraints catalog inorder to correctly populate sys.objects view.

Issues Resolved

BABEL-5712

Test Scenarios Covered

  • Use case based - y

  • Boundary conditions -

  • Arbitrary inputs -

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712
Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
@roshan0708 roshan0708 requested a review from KushaalShroff April 6, 2025 22:19
@roshan0708 roshan0708 requested a review from KushaalShroff April 7, 2025 13:15
@jsudrik jsudrik merged commit 5360b0e into babelfish-for-postgresql:BABEL_5_X_DEV Apr 8, 2025
47 checks passed
roshan0708 added a commit to amazon-aurora/babelfish_extensions that referenced this pull request Apr 8, 2025
…r-postgresql#3658)

* Include unique constraints metadata in sys.objects view

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712
Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
shardgupta pushed a commit that referenced this pull request Apr 8, 2025
This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
roshan0708 added a commit to amazon-aurora/babelfish_extensions that referenced this pull request Apr 15, 2025
…r-postgresql#3658)

* Include unique constraints metadata in sys.objects view

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712
Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
(cherry picked from commit 5360b0e)
roshan0708 added a commit to amazon-aurora/babelfish_extensions that referenced this pull request Apr 15, 2025
…r-postgresql#3658) (babelfish-for-postgresql#3660)

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
(cherry picked from commit 5d5f6d8)
jsudrik pushed a commit that referenced this pull request Apr 16, 2025
* Include unique constraints metadata in sys.objects view

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712
Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
(cherry picked from commit 5360b0e)
jsudrik pushed a commit that referenced this pull request Apr 16, 2025
… (#3694)

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
(cherry picked from commit 5d5f6d8)
sharathbp pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Sep 22, 2025
…r-postgresql#3658) (babelfish-for-postgresql#3660)

This commit rectifies the type check for fetching metadata of both
primary key and unique constraints from sys.key_constraints catalog
inorder to correctly populate sys.objects view.

Task: BABEL-5712

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
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.

4 participants