Opened 2 years ago
Closed 13 months ago
#5212 closed defect (wontfix)
Can't regress test PostGIS using non-superuser PostgreSQL role (cannot set lc_messages)
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.5.0 |
Component: | QA/testsuite | Version: | 3.0.x |
Keywords: | pgextwlist | Cc: |
Description
I was using pgtwlist to try to simulate a sandboxed user such as one would find in a classroom or in a cloud setup.
Basic steps in my setup, I install the https://github.com/dimitri/pgextwlist.git extension, restart the postgresql service
ALTER SYSTEM SET extwlist.extensions='postgis,postgis_topology,postgis_sfcgal, address_standardizer,postgis_tiger_geocoder'; SELECT pg_reload_conf();
The user I created, has rights to create databases but is not a super user, and I confirmed I can do CREATE EXTENSION postgis with this user.
When I try to regress though, I get an error
> "/var/run/postgresql/.s.PGSQL.5433" failed: FATAL: permission denied > to set parameter "lc_messages"
Change History (11)
comment:1 by , 2 years ago
Milestone: | PostGIS 3.2.3 → PostGIS 3.4.0 |
---|
comment:2 by , 17 months ago
Milestone: | PostGIS 3.4.0 → PostGIS 3.5.0 |
---|
comment:3 by , 14 months ago
Owner: | changed from | to
---|
comment:4 by , 14 months ago
Keywords: | pgextwlist added |
---|
comment:5 by , 14 months ago
comment:6 by , 14 months ago
I could have woodie reproduce this: https://woodie.osgeo.org/repos/30/pipeline/1293/69#L2307
comment:7 by , 14 months ago
Summary: | Can't regress test PostGIS against sandboxed systems → Can't regress test PostGIS against sandboxed systems (lc_messages) |
---|
The lc_messages setting was added in 2006 to force C locale with [81943a774a0bc2d046592736b3c9e5a35fffe29e/git] — we'd need a way to request C locale that doesn't require superuser permission. It's currently done by run_test.pl
comment:8 by , 14 months ago
Summary: | Can't regress test PostGIS against sandboxed systems (lc_messages) → Can't regress test PostGIS using non-superuser PostgreSQL role (cannot set lc_messages) |
---|---|
Version: | 3.2.x → 3.0.x |
comment:10 by , 13 months ago
Component: | build → QA/testsuite |
---|
comment:11 by , 13 months ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I think we can close this as won't-fix as in order to load postgis function you'll need superuser anyway. Surely for script based and also for extension based unless we turn the extension into a trusted one ( ref #5567 ).
Sandboxed based testing is now supported and used by Woodie.
Regina: feel free to reopen if you disagree
CI coverage of sandboxed systems ticket filed: #5566