[postgis-devel] Documentation on make check
Greg Troxel
gdt at lexort.com
Tue Dec 18 07:38:58 PST 2018
Bruce Rindahl <bruce.rindahl at gmail.com> writes:
> Doing some full compilation and checking on raspberry pi. While running
> make check, realized this has to be run as a postgresql superuser. Suggest
> adding to documentation it be run as:
> PGUSER=foo make check
> where foo is a superuser.
Agreed on explaining that the user running make check needs to be able
to do postgresql operations. I guess it's an interesting question on
whether that user needs to be a pgsql superuser, as that sort of
indicates that postgis needs privs that perhaps it shouldn't.
I don't follow how
PGUSER=foo make check
would work, unless you are assuming that you are running as root. A
normal user should not be able to obtain another user's permissions just
by asking.
I typically do postgis packaging/testing on a machine that does not have
a production database, and run builds/tests as a non-root user that is a
pgsql su.
More information about the postgis-devel
mailing list