Re: Testing an extension against multiple versions of Postgresql - Mailing list pgsql-general

From Ian Barwick
Subject Re: Testing an extension against multiple versions of Postgresql
Date
Msg-id fd48bb84-1af0-4b65-c52d-c165d9f75755@2ndquadrant.com
Whole thread Raw
In response to Testing an extension against multiple versions of Postgresql  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
Responses Re: Testing an extension against multiple versions of Postgresql
List pgsql-general
On 7/13/19 10:55 AM, Rhys A.D. Stewart wrote:
> Greetings All,
> 
> I have both postgresql versions 10 and 11 installed on my box. I'm working on an extension and just realized that
'makeinstall' installs the extension to the 11 server, but 'make installcheck' runs against the 10 server (I had
previouslyinstalled the extension there).
 
> 
> Running psql without specifying a host or port connects me to the 10 server, so I suspect that both make installcheck
andpsql are doing similar things with respect to connecting to a default server.
 
> 
> So the questions are:
> Can I have make install & make installcheck run against multiple versions at the same time or how do I tell the
installcheckto run against the 11 server.
 

Try setting relevant environment variables [*] for the target version before running "make installcheck".

[*] https://www.postgresql.org/docs/current//libpq-envars.html


Regards

Ian Barwick

-- 
  Ian Barwick                   https://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services



pgsql-general by date:

Previous
From: dinesh kumar
Date:
Subject: Re: How to run a task continuously in the background
Next
From: Luca Ferrari
Date:
Subject: Re: Issue: Creating Symlink for data directory of postgresql in CentOS7