Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgis_restore.pl is missing in postgis/postgis:16-3.4 #367

Open
OriginalPenguin opened this issue Nov 26, 2023 · 3 comments
Open

postgis_restore.pl is missing in postgis/postgis:16-3.4 #367

OriginalPenguin opened this issue Nov 26, 2023 · 3 comments

Comments

@OriginalPenguin
Copy link

It seems like this should be included in the official docker repository, but it doesn't seem to be anywhere.

Is it omitted on purpose? Why?

What's the easiest way to add it?

If the omission is an error, can you kindly release a new version with it included?

@OriginalPenguin
Copy link
Author

I just checked and it is in the alpine verison, and it is only missing in the Debian version.

@ImreSamu
Copy link
Member

Thank you for the issue!

It does seem like something is missing.

However, since we also use the Debian PostGIS package, specifically

I have written to the "pgsql-pkg-debian(at)postgresql(dot)org"
mailing list about this issue.

@ImreSamu
Copy link
Member

ImreSamu commented Nov 29, 2023

The postgis_restore command has been moved to the "postgis" Debian package.
If you need it urgently, you should also install this package.

I have created a Dockerfile for reference:

FROM postgis/postgis:16-3.4
RUN set -eux \
      && apt-get update \
      && apt-get install -y --no-install-recommends \
           postgis \
      && dpkg -L postgis \     
      && rm -rf /var/lib/apt/lists/*

and in the log: /usr/bin/postgis_restore

#5 5.691 + dpkg -L postgis
#5 5.698 /.
#5 5.698 /usr
#5 5.698 /usr/bin
#5 5.698 /usr/bin/pgsql2shp
#5 5.698 /usr/bin/pgtopo_export
#5 5.698 /usr/bin/pgtopo_import
#5 5.698 /usr/bin/postgis
#5 5.698 /usr/bin/postgis_restore          <------ now here 
#5 5.698 /usr/bin/raster2pgsql
#5 5.698 /usr/bin/shp2pgsql

I am strongly considering including this package in the basic postgis/postgis Debian images, but that will take a bit more time. Therefore, the quickest workaround for now is to extend the current postgis images.

EDIT:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants