Skip to content

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Dec 22, 2025

Some variable declaration to beginning of function to enforce C90 and long-standing coding practice of PostgreSQL. Also, be tidy, and release memory allocated in GetDatabasePath. This is not a real memory leak, as standby promotion happends only once (until next restart).

Per coverity report 529246.

Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.
@reshke reshke changed the title Beautify UpdateCatalogForStandbyPromotion. Beautify UpdateCatalogForStandbyPromotion and suppress coverity report. Dec 25, 2025
@reshke reshke requested a review from my-ship-it December 25, 2025 06:36
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