Skip to content

Fix PG19 compatibility#33

Open
dutow wants to merge 1 commit intoPercona-Lab:mainfrom
dutow:pg19compat
Open

Fix PG19 compatibility#33
dutow wants to merge 1 commit intoPercona-Lab:mainfrom
dutow:pg19compat

Conversation

@dutow
Copy link
Collaborator

@dutow dutow commented Feb 19, 2026

This adds an ifdef around the changes PG19 GetNamedDSMSegment function

We still don't have CI for it, but I built too many times locally againts PG19 to keep this commit local.

Copy link
Collaborator

@jeltz jeltz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than my small comment.

state->area_handle = DSA_HANDLE_INVALID;
};

bool found = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it initialized to false? PostgreSQL's code does not do that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly to prevent a warning about a possibly uninitialized variable.

Also that warning kind of makes sense, since GetNamedDSMSegment is an external dependency, and we can't see into it from here.

This adds an ifdef around the changes PG19 GetNamedDSMSegment function
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