From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Rhys A.D. Stewart <rhys.stewart@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Testing an extension against multiple versions of Postgresql
Date: Sat, 13 Jul 2019 15:03:17 +0900
Message-ID: <fd48bb84-1af0-4b65-c52d-c165d9f75755@2ndquadrant.com> (raw)
In-Reply-To: <CACg0vTkVVD6WnQ0HGu=rJBERp2W5-YvcnB+xWK3GQ0QFCo1tKQ@mail.gmail.com>
References: <CACg0vTkVVD6WnQ0HGu=rJBERp2W5-YvcnB+xWK3GQ0QFCo1tKQ@mail.gmail.com>
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 'make install' installs the extension to the 11 server, but 'make installcheck' runs against the 10 server (I had previously installed the extension there).
>
> Running psql without specifying a host or port connects me to the 10 server, so I suspect that both make installcheck and psql 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 installcheck to 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ian.barwick@2ndquadrant.com, rhys.stewart@gmail.com
Subject: Re: Testing an extension against multiple versions of Postgresql
In-Reply-To: <fd48bb84-1af0-4b65-c52d-c165d9f75755@2ndquadrant.com>
References: <CACg0vTkVVD6WnQ0HGu=rJBERp2W5-YvcnB+xWK3GQ0QFCo1tKQ@mail.gmail.com> <fd48bb84-1af0-4b65-c52d-c165d9f75755@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox