Skip to content

Adding bbf version of pgstat_init_function_usage#772

Open
RuchaSK1 wants to merge 1 commit into
babelfish-for-postgresql:BABEL_6_X_DEV__PG_18_Xfrom
amazon-aurora:jira-babel-6405
Open

Adding bbf version of pgstat_init_function_usage#772
RuchaSK1 wants to merge 1 commit into
babelfish-for-postgresql:BABEL_6_X_DEV__PG_18_Xfrom
amazon-aurora:jira-babel-6405

Conversation

@RuchaSK1

@RuchaSK1 RuchaSK1 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

Adding pgstat_init_function_usage_no_drop, a Babelfish-specific version of pgstat_init_function_usage that does not call pgstat_drop_entry when a function is found to be concurrently dropped. This prevents a server crash caused by double-drop of pgstat entries during concurrent DROP+CREATE+EXEC with track_functions=all.

Changing pgstat_function_wrapper_hook return type from void to bool to allow the hook to skip the engine's pgstat_init_function_usage.

Extension PR: babelfish-for-postgresql/babelfish_extensions#4859

Issues Resolved

Task: BABEL-6405

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

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 PostgreSQL license, 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