unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32712: Error running "create extension postgis"
@ 2018-09-12  3:07 Ben Sturmfels
  2018-09-12  7:11 ` Julien Lepiller
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Sturmfels @ 2018-09-12  3:07 UTC (permalink / raw)
  To: 32712

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

Hi Folks,

When I attempt to create a database with PostGIS extensions, I get an
error "could not open extension control file":

  $ createdb -O ben testdb
  $ psql testdb --command="create extension postgis"
  ERROR:  could not open extension control file "/gnu/store/6238qjlc6cl7wld3gykcfj83ajlsrmjd-postgresql-10.5/share/extension/postgis.control": No such file or directory

My GuixSD system configuration includes the PostgreSQL service and the
PostGIS package, something like this:

  (packages (cons*
            ...
            postgis
            %base-packages))

  (services (cons*
            ...
            (postgresql-service)
            %desktop-services))

If I look in the store, I see "postgis.control" in a number of places,
but definitely not in the "postgresql-10.5" directory:

  $ find /gnu/store -name postgis.control
  /gnu/store/a9bnyqpxbhskf4vz6p84k4m42li4zqc8-postgis-2.4.4/share/extension/postgis.control
  /gnu/store/8jimyykpydhppbdbp72zr4z7l0z2fblr-profile/share/extension/postgis.control

Regards,
Ben

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#32712: Error running "create extension postgis"
  2018-09-12  3:07 bug#32712: Error running "create extension postgis" Ben Sturmfels
@ 2018-09-12  7:11 ` Julien Lepiller
  2018-09-12  7:40   ` Gábor Boskovits
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Lepiller @ 2018-09-12  7:11 UTC (permalink / raw)
  To: 32712

Hi, this is a known issue. I have sent a patch for that but it wasn't reviewed yet. Ideally I could also patch the postgresql service to allow specifying extensions. I will try to do something about it.

Le 12 septembre 2018 05:07:21 GMT+02:00, Ben Sturmfels <ben@stumbles.id.au> a écrit :
>Hi Folks,
>
>When I attempt to create a database with PostGIS extensions, I get an
>error "could not open extension control file":
>
>  $ createdb -O ben testdb
>  $ psql testdb --command="create extension postgis"
>ERROR:  could not open extension control file
>"/gnu/store/6238qjlc6cl7wld3gykcfj83ajlsrmjd-postgresql-10.5/share/extension/postgis.control":
>No such file or directory
>
>My GuixSD system configuration includes the PostgreSQL service and the
>PostGIS package, something like this:
>
>  (packages (cons*
>            ...
>            postgis
>            %base-packages))
>
>  (services (cons*
>            ...
>            (postgresql-service)
>            %desktop-services))
>
>If I look in the store, I see "postgis.control" in a number of places,
>but definitely not in the "postgresql-10.5" directory:
>
>  $ find /gnu/store -name postgis.control
>/gnu/store/a9bnyqpxbhskf4vz6p84k4m42li4zqc8-postgis-2.4.4/share/extension/postgis.control
>/gnu/store/8jimyykpydhppbdbp72zr4z7l0z2fblr-profile/share/extension/postgis.control
>
>Regards,
>Ben

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#32712: Error running "create extension postgis"
  2018-09-12  7:11 ` Julien Lepiller
@ 2018-09-12  7:40   ` Gábor Boskovits
  2019-04-24  1:59     ` Ben Sturmfels
  0 siblings, 1 reply; 4+ messages in thread
From: Gábor Boskovits @ 2018-09-12  7:40 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 32712

[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]

Julien Lepiller <julien@lepiller.eu> ezt írta (időpont: 2018. szept. 12.,
Sze, 9:15):

> Hi, this is a known issue. I have sent a patch for that but it wasn't
> reviewed yet. Ideally I could also patch the postgresql service to allow
> specifying extensions. I will try to do something about it.
>
> Hello Julien,

I believe this is the patch: https://issues.guix.info/issue/32297.
I will try to review that, this functionality is also important for me.


> Le 12 septembre 2018 05:07:21 GMT+02:00, Ben Sturmfels <ben@stumbles.id.au>
> a écrit :
> >Hi Folks,
> >
> >When I attempt to create a database with PostGIS extensions, I get an
> >error "could not open extension control file":
> >
> >  $ createdb -O ben testdb
> >  $ psql testdb --command="create extension postgis"
> >ERROR:  could not open extension control file
>
> >"/gnu/store/6238qjlc6cl7wld3gykcfj83ajlsrmjd-postgresql-10.5/share/extension/postgis.control":
> >No such file or directory
> >
> >My GuixSD system configuration includes the PostgreSQL service and the
> >PostGIS package, something like this:
> >
> >  (packages (cons*
> >            ...
> >            postgis
> >            %base-packages))
> >
> >  (services (cons*
> >            ...
> >            (postgresql-service)
> >            %desktop-services))
> >
> >If I look in the store, I see "postgis.control" in a number of places,
> >but definitely not in the "postgresql-10.5" directory:
> >
> >  $ find /gnu/store -name postgis.control
>
> >/gnu/store/a9bnyqpxbhskf4vz6p84k4m42li4zqc8-postgis-2.4.4/share/extension/postgis.control
>
> >/gnu/store/8jimyykpydhppbdbp72zr4z7l0z2fblr-profile/share/extension/postgis.control
> >
> >Regards,
> >Ben
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2573 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#32712: Error running "create extension postgis"
  2018-09-12  7:40   ` Gábor Boskovits
@ 2019-04-24  1:59     ` Ben Sturmfels
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Sturmfels @ 2019-04-24  1:59 UTC (permalink / raw)
  To: Gábor Boskovits, Julien Lepiller; +Cc: 32712-done

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

On Wed, 12 Sep 2018, Gábor Boskovits wrote:

> Julien Lepiller <julien@lepiller.eu> ezt írta (időpont: 2018. szept. 12., Sze, 9:15):
>
>  Hi, this is a known issue. I have sent a patch for that but it wasn't
>  reviewed yet. Ideally I could also patch the postgresql service to
>  allow specifying extensions. I will try to do something about it.
>
> Hello Julien,
>
> I believe this is the patch: https://issues.guix.info/issue/32297. I
> will try to review that, this functionality is also important for me.

Thanks Julien and Gábor, I see that this patch has now been merged into
Guix and the documentation for configuring postgis is available in the
info manual under System Configuration, Services, Database Services.
I'll close this bug report now.

After modifying my service configuration, reconfiguring and running
`herd restart postgres`, I was able to create a new database and use the
`create extension postgis` command.

Folks can see the manual for details, but the configuration change is
essentially:

  (postgresql-service #:extension-packages (list postgis))

Thanks for all your work, I really appreciate this change!

Regards,
Ben

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-24  2:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12  3:07 bug#32712: Error running "create extension postgis" Ben Sturmfels
2018-09-12  7:11 ` Julien Lepiller
2018-09-12  7:40   ` Gábor Boskovits
2019-04-24  1:59     ` Ben Sturmfels

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).