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

Include ogr_fdw extension #209

Open
robe2 opened this issue Oct 4, 2020 · 4 comments
Open

Include ogr_fdw extension #209

robe2 opened this issue Oct 4, 2020 · 4 comments

Comments

@robe2
Copy link
Member

robe2 commented Oct 4, 2020

As noted in this ticket - pramsey/pgsql-ogr-fdw#182

It would be really handy if docker-postgis files include ogr_fdw.

ogr_fdw spatial data wrapper is already carried by apt.postgresql.org and yum.postgresql.org and its big dependency is GDAL which is already included with the postgis extensions.

I can take a stab at adding it if all are okay with the idea.

I'm guessing a line such as below should suffice:

RUN apt-get install postgresql-12-ogr-fdw

Replacing the 12 with what ever version. For alpine I have to check if they carry ogr_fdw, if not might require a compile on Alpine. At anyrate it's a trivial compile if you have postgresql dev and postgis installed.

@phillipross
Copy link
Contributor

@robe2 there's currently an open item to actually go the opposite way and remove extensions that have traditionally been included with the goal of providing a lighter weight image to serve as a base that people can extend. (see #187)

There are already some workable ideas on the table about how to accomplish this while avoiding breaking backward compatible, maintaining compatibility with the upstream postgres docker image, etc. There are still some parts of the problem that need to be addressed though, such as how to deal with alpine, which kinds of builds to provide (stable, edge, master), and then how to provide a good way to make the images upgradable from version to version. Please feel free to join the discussion on that issue.

@robe2
Copy link
Member Author

robe2 commented Oct 4, 2020

Just a note here. I propose providing the extension libs for ogr-fdw, NOT to install the extension. I'll put my other comments on the #187 ticket.

@phillipross
Copy link
Contributor

Yes, definitely... we'll keep this issue open here as the proposal for adding ogr-fdw to the list of optional extensions to be installed on deployment of the container. The mechanisms to get those extensions deployable and upgradable are what #187 is about.

@robe2
Copy link
Member Author

robe2 commented Apr 19, 2022

@phillipross and @ImreSamu is the main issue with including ogr_fdw extension the building of it. I realize now that since most of your PostGIS related things are built rather than installed from packages, it probably makes more sense to compile ogr_fdw as part of the docker image rather than installing from packages. It will add insignificant weight to the install, since it's just a thin wrapper around GDAL vector support that you already have installed in the image.

Note I'm not talking about having it pre-installed as one of the pre-installed extensions, just having it available if a user wants to install it in a PostGIS enabled database. If that is the main stumbling block, I'm happy to take a stab at providing a pull request for it.

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