Skip to content

support for PostgreSQL 18 : here is a small patch #524

Closed

Description

@achix

postgres@smadevnu:~/src/pljava % git diff
diff --git a/pljava-so/src/main/c/VarlenaWrapper.c b/pljava-so/src/main/c/VarlenaWrapper.c
index cb1d9e7a..d36c4da4 100644
--- a/pljava-so/src/main/c/VarlenaWrapper.c
+++ b/pljava-so/src/main/c/VarlenaWrapper.c
@@ -36,6 +36,10 @@
#define GetOldestSnapshot() NULL
#endif

+#if PG_VERSION_NUM >= 180000
+#define GetOldestSnapshot() NULL
+#endif
+
#define _VL_TYPE struct varlena *

#if PG_VERSION_NUM < 140000
postgres@smadevnu:~/src/pljava %

Activity

  1. jcflack commented on May 25, 2025

    @jcflack
    Contributor

    Hmm. Culprit seems to be postgres/postgres@4d82750. I think probably get_toast_snapshot() for the win.

  2. df7cb commented on Jun 2, 2025

    @df7cb

    Are you planning to do a release supporting PG18? That would be one PG18 TODO list item less on my list.

  3. jcflack commented on Jun 2, 2025

    @jcflack
    Contributor

    I believe the most recent merged pull request #529 should take care of PG18. A test build from the REL1_6_STABLE branch ought to work now.

    I always have a bit of internal debate about how early to cut the official release. Maybe when there's an 18 release candidate?

  4. df7cb commented on Jun 2, 2025

    @df7cb

    RC would be very late. How about now? 18 Beta1 is out, that would also allow people to beta-test pljava on 18. Yes, sometimes features get reverted that might break extensions again, or there might be more changes, but that's not the norm.

  5. marked PostgreSQL 18 support #543 as a duplicate of this issue on Sep 29, 2025
  6. jcflack commented on Sep 29, 2025

    @jcflack
    Contributor

    Believed resolved in 1.6.10. Sorry for the delay. (On the bright side, also allowed confirming the release works with Java 25.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions