Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PostgreSQL 17 #502

Merged
merged 2 commits into from
Oct 5, 2024
Merged

Support PostgreSQL 17 #502

merged 2 commits into from
Oct 5, 2024

Conversation

jcflack
Copy link
Contributor

@jcflack jcflack commented Oct 3, 2024

Slight rework of PR #501 from @fmbiete, who found the new names of AmBackgroundWorkerProcess and AmAutoVacuumWorkerProcess, and the demise of SPI_restore_connection, to be the only changes needing attention.

A review of the PG17 release notes suggests the no-longer-NUL-terminated input to UDT receive functions as the only other change likely to matter, but by inspection, existing code already relies on the count and not the NUL.

Addresses #499.

Credit to Francisco Miguel Biete Banon in PR #501.

Simplified so the code now simply uses the new names
(introduced in postgres/postgres@393b559), and defines
them in older PG versions for compatibility.
SPI_restore_connection was defined as a noop since PostgreSQL 10,
and the compatibility macro has been removed in
postgres/postgres@75680c3.

Because PL/Java 1.6 purports to still run on PostgreSQL 9.5,
continue to use the function in PG < 10.

Credit to Francisco Miguel Biete Banon in PR #501.
@jcflack jcflack merged commit 3118cf2 into REL1_6_STABLE Oct 5, 2024
10 checks passed
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