Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR adds support for the PostgreSQL backend to the minetest server build.
Benefits of this PR and context:
PostgreSQL is a more performant database backend for minetest servers. The default database backend is sqlite3, which can bottleneck your server under high client load.
To use the PostgreSQL backend, you must modify world.mt. This will be created in the worlds/world directory by default when the container is started.
A sample configuration might be as follows:
In this example, you would be running a PostgreSQL server at "your-db-hostname", with admin user/password postgres/hunter2. The database "minetest" doesn't have to exist, provided that the user "postgres" has sufficient rights to create a database.
How Has This Been Tested?
Image has been tested on x86_64 Ubuntu 22.04, and PostgreSQL support has been verified both in the build logs, and in the final server binary.
Source / References:
https://wiki.minetest.net/Database_backends#PostgreSQL