Thread: Run make checkinstall with configurable user.

Run make checkinstall with configurable user.

From
mahendrakar s
Date:
Hi,

Is there a way to run the make checkinstall for 3rd party extensions
with a configurable user? Specifically regression tests of the
extension.
Basically, I want the regression tests to be run as other user than
the super user.

I'm looking for something like this:

make checkinstall PG_USER=<otheruser>


Thanks,
Mahendrakar.



Re: Run make checkinstall with configurable user.

From
Laurenz Albe
Date:
On Fri, 2023-07-28 at 11:36 +0530, mahendrakar s wrote:
> Is there a way to run the make checkinstall for 3rd party extensions
> with a configurable user? Specifically regression tests of the
> extension.
> Basically, I want the regression tests to be run as other user than
> the super user.
>
> I'm looking for something like this:
>
> make checkinstall PG_USER=<otheruser>

For extensions built using PGXS, you can use:

 PGUSER=myuser make installcheck

Yours,
Laurenz Albe