guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#32297] [PATCH] make postgresql find its plugins


From: Julien Lepiller
Subject: [bug#32297] [PATCH] make postgresql find its plugins
Date: Sat, 28 Jul 2018 17:58:15 +0200

Hi,

attached is a patch to make postgresql find its plugins. Actually, it
only makes it unable to follow symlinks, so we can provide a union of
postgresql and plugins to the postgresql service. I also attached an
example system configuration that shows how this works. Do you think
this is the right solution? The patch was taken from nixos and updated
for the current version of postgresql.

Note that the VM will have troubles loading the extensions with only
its 256MB memory by default. You should add more ram to it.

Inside the VM, you can test with:

psql -U postgres
> create database postgistest;
> \connect postgistest;
> create extension postgis;
> create extension postgis_topology;

no error, you now have an empty spatial database :)

An extension would be to have a procedure to build the union of
packages (postgresql and extensions) called by the postgresql service.
we would have an "extension" field that would contain a list of
packages that contain extensions for postgresql and the service would
build and use the union of postgresql and these extensions. WDYT?

Attachment: 0001-gnu-postgresql-Fix-finding-extensions.patch
Description: Text Data

Attachment: postgis.scm
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]