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

Fix build errors with PostgreSQL v17 #501

Closed
wants to merge 1 commit into from

Conversation

fmbiete
Copy link
Contributor

@fmbiete fmbiete commented Sep 27, 2024

Symbols renamed in PostgreSQL v17

SPI_restore_connection was defined as a noop since PostgreSQL 10, and the compatibility macro has been removed.

Commit removing compatibility macro

#define SPI_restore_connection()	((void) 0)

Closes #499

jcflack added a commit that referenced this pull request Oct 3, 2024
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.
jcflack added a commit that referenced this pull request Oct 3, 2024
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 mentioned this pull request Oct 3, 2024
@jcflack
Copy link
Contributor

jcflack commented Oct 3, 2024

Closing in favor of PR #502.

@jcflack jcflack closed this Oct 3, 2024
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.

PostgreSQL 17 support
2 participants