-
Notifications
You must be signed in to change notification settings - Fork 24
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
Connect to alternative schemas #44
Comments
cc @bitner |
Hmm, Dockerfile looks like:
I've tried both |
🤔 I have a PgSTAC database that I start with docker compose (https://github.com/developmentseed/eoAPI/blob/master/docker-compose.yml#L129-L143) and then pass
|
Tried:
But weirdly it's still just picking up 3 of the postgis functions: Do I need TIPG_TABLE_CONFIG__pgstac_items__pk=id ? |
ok I can reproduce this. It's weird that I had no issues using pgstac schema
|
Pleased it's not just me! Not an immediate fix but what about functionality matching pg_featureserv - where you don't have to specify the schema, the application finds everything which the $user has SELECT permissions for? Then all the access control is at the DB side. Kind of aligns with #37 keeping things stateless, so any new tables, views, comments associated with a user will come straight through without restarts. |
I'll let @bitner have a look 🙏 |
Don't know if it's helpful or not but we recently added CQL functionality to the PostGres provider in pygeoapi with sqlalchemy & pygeofilter |
@bitner any ideas? |
I've narrowed down the issue and it comes from this line Line 223 in 99c7de7
|
I'm also able to connect to other schema when I add them in Line 45 in 99c7de7
eg
|
If you did similar to L216 but used |
There are two things going on here.
What this means is that if your schemas and function_schemas are set to NULL, then what shows up will be everything that is in the users search_path. If the search_path is set to public, but schemas environment var is set to public,myschema only the tables from the public schema would show up. If the search_path for the user was set to public,myschema then tables from both would show up. Looking through the code, I think that we could do a couple things that could make things a bit clearer.
|
Hi,
I'm running postgres, and have all my geospatial data in a schema "published" rather than using public.
I'm struggling to connect to that schema - tipg is only connecting to public.
In the Dockerfile I've tried
ENV POSTGRES_DBNAME=oraetl?options=-c%20search_path=published
and
ENV TIPG_DB_SCHEMAS=["published"]
Neither have worked. Any suggestions?
The text was updated successfully, but these errors were encountered: