
Minecraft PostgreSQL JDBC
Universal jar shipping the PostgreSQL JDBC driver as a Bukkit/Spigot/Paper plugin and Fabric/Forge/NeoForge mod.
About this Mod
PostgreSQL JDBC
The official PostgreSQL JDBC driver (pgjdbc) repackaged as a Bukkit/Spigot/Paper plugin and a Fabric/Forge/NeoForge mod. One universal jar covers every supported loader and MC version.
The mod does nothing on its own — it exists so plugins or mods that want to talk to a PostgreSQL database don't each have to bundle their own copy of the driver.
What's in the jar
org.postgresql:postgresql:42.7.5 plus minimal loader stubs for Spigot, Forge 1.12, Forge 1.13–1.16, Forge 1.17–1.20, NeoForge 1.21+, and Fabric. The driver classes stay at their canonical org.postgresql.* paths — no relocation — so consumers find them with plain Class.forName("org.postgresql.Driver"). META-INF/services/java.sql.Driver is preserved so the driver auto-registers with DriverManager.
Compatibility
| Loader | MC versions | Notes |
|---|---|---|
| Bukkit / Spigot / Paper / Folia / Purpur | 1.8 → current | drop into plugins/ |
| Fabric | 1.16.1 → current | needs Fabric Loader 0.14+ |
| Forge | 1.12 → 1.20 | universal jar, no Mixins |
| NeoForge | 1.21 → current | drop into mods/ |
Java 8+ required (pgjdbc 42.x baseline).
Using it from a plugin or mod
Declare pgjdbc as compileOnly against the same version this jar ships:
compileOnly("org.postgresql:postgresql:42.7.5")
Probe at startup. Fall through gracefully if the operator hasn't installed this:
try {
Class.forName("org.postgresql.Driver");
} catch (ClassNotFoundException e) {
getLogger().warning("PostgreSQL backend disabled — install minecraft-postgresql-jdbc");
return;
}
try (Connection c = DriverManager.getConnection(url, user, password)) {
// ...
}
On Paper 1.17+ each plugin's classloader is isolated. Add this mod to your plugin.yml softdepend so the driver classes are visible to your plugin:
softdepend: [minecraft-postgresql-jdbc]
Fabric and NeoForge unify all mods on one classloader, so no equivalent declaration is needed there.
Versioning
The jar version tracks pgjdbc one-to-one. 42.7.5+2026-04-25 ships pgjdbc 42.7.5; the suffix is the build date. A scheduled GitHub Action checks Maven Central daily — when pgjdbc cuts a new release, it opens an auto-merge PR and the Modrinth release goes out automatically.
License
The driver is BSD-2-Clause (PostgreSQL Global Development Group). The repackage adds no functional changes and inherits that license. Full text in LICENSE.
Issues, source: GitHub.
Available Versions
How to Install Minecraft PostgreSQL JDBC on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set bukkit Loader
In the panel under "Egg", select the bukkit loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Minecraft PostgreSQL JDBC". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+47 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Minecraft PostgreSQL JDBC server crashes on startup – what to do?
Most common cause: wrong bukkit version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Minecraft PostgreSQL JDBC compatible with bukkit and fabric and folia and forge and neoforge and paper and purpur and quilt and spigot?
Minecraft PostgreSQL JDBC officially supports bukkit, fabric, folia, forge, neoforge, paper, purpur, quilt, spigot for Minecraft 26.1.2, 26.1.1, 26.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Minecraft PostgreSQL JDBC – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Minecraft PostgreSQL JDBC consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Minecraft PostgreSQL JDBC with just one click on your server.