Skip to content

Rewriting Objectpropertyex fucntion in C#4691

Open
RuchaSK1 wants to merge 1 commit intobabelfish-for-postgresql:BABEL_6_X_DEVfrom
amazon-aurora:jira-babel-6404-part2
Open

Rewriting Objectpropertyex fucntion in C#4691
RuchaSK1 wants to merge 1 commit intobabelfish-for-postgresql:BABEL_6_X_DEVfrom
amazon-aurora:jira-babel-6404-part2

Conversation

@RuchaSK1
Copy link
Copy Markdown
Contributor

@RuchaSK1 RuchaSK1 commented Apr 2, 2026

Description

The PL/pgSQL implementation of OBJECTPROPERTYEX relies on sys.all_objects, an expensive view that joins across multiple catalogs with multiple UNION branches, causing significant overhead which gets carried forward to any function using OBJECTPROPERTYEX.

Hence we are replacing OBJECTPROPERTYEX with a C implementation that uses direct syscache lookups via resolve_object_type(), avoiding view materialization entirely. For non-BaseType properties, it delegates to the existing
objectproperty_internal.

Issues Resolved

Task: BABEL-6404

Authored-by: Rucha Kulkarni ruchask@amazon.com
Signed-off-by: Rucha Kulkarni ruchask@amazon.com

Test Scenarios Covered

  • Use case based -

  • 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.

Signed-off-by: Rucha Kulkarni <ruchask@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.

1 participant